-
-
-
-
-
-
-
-
-
-
-
-
What is the diffrence between Object & Instance?I know that the Object is the instance of class,but why & when we call an Object as an Instance ?
I know that the Object is the instance of a class
-
-
-
-
How many threads at a time can access a monitor?
A) oneB) twoC) noneD) three
-
What are the part(s)in executing a Java program and their purposes?
A) Java CompilerB) Java Interpreter.C) Both of the aboveD) None of the aboveExplanation: The Java Compiler is used for compilation and the Java Interpreter is used for execution of the application.
-
-
You would use the ____ operator to create a single instance of a named class.
A) newB) dotC) equalsD) none of the above
-
Which of the following statements correctly describes the relation between an object and the instance variable it stores? (Select multiple)
A) Each new object has its own distinctive set of instance variablesB) Each object has a copy of the instance variables of its classC) the instance variable of each object are seperate from the variables of other objectsD) The instance variables of each object are stored together with the variables of other objects
Java Interview Questions
Ans