Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Quiz Name: allows code compiled on one machine to be executed on a machine of a

ID: 3606523 • Letter: Q

Question

Quiz Name: allows code compiled on one machine to be executed on a machine of a I) A unique aspect of Java that different hardware platform is Javas 2) An error in a program that results in the program outputing $300 instcad of the correct answer, $250 is 3) Which of the following reserved words in Java is used to create an instance of a class? A) class B) public C) public or private, either could be used D) import E) new 4.) To define a class that will represent a car, which of the following definitions is most appropriate? A) private class car B) publie class car C) public class Car D) public class CAR E) private class Car 5. The relationship between a class and an object is best described as A) classes are instances of objects B) objects are instances of classes C) objects and classes are the same thing D) classes are programs while objects are variables are the instance data of classes 6) Mistyping "println" as "printn" will result in A) a syntax error B) a run-time error C) a logical error D) no error at all E) converting the statement into a comment

Explanation / Answer

1) bytecodes

Explanation: The translation process for a Java program is to first compile it into bytecodes, they can be used no matter what the platform is.

2)a programmer error

Explanation: This error is classified by the programmer in order to solve more easily the given problem.

3) E) new

Explanation: new is used to initiate the object of the class in JAVA.

4)C) public class car

Explanation: If the class is public, it can be accessed easily from anywhere.

5) B) objects are instances of classes

Explanation: objects are used to create instance of classes.

6) A) a syntax error

Explanation: since it is not correct syntax.