-
Can we use final keyword before constructor?
Is it possible to define final keyword before constructor.if yes then describe?
-
Because finalize () belongs to the java.lang.Object class, it is present in all ___.
A) objectsB) classesC) methodsD) interfaces.
-
Can try statements be nested
Try statements may be tested.
-
-
-
-
Which one of the following operations is NOT supported by java.lang.Runtime
Choice 1 Request the garbage collector to be active. Choice 2 Add shutdown hooks. Choice 3 Execute native operating system commands. Choice 4 Dynamically unload Class files. Choice 5 Cause the Java Virtual Machine (JVM) to exit.
-
An applet is downloaded on demand
A) TrueB) False
-
What is the unit for 1000 in the below statement?ob.sleep(1000)
A) Int millisecondsB) Double millisecondsC) long millisecondsD) Float milliseconds
-
Phantom memory
What is phantom memory and how it is useful?
-
-
-
-
-
Java is a Programming Language.
A) TrueB) False
-
State true or false :- Final methods can be overridden.
A) TrueB) False
-
-
Can an object's finalize() method be invoked while it is reachable
An object's finalize() method cannot be invoked by the garbage collector while the objectis still reachable. However, an object's finalize() method may be invoked by otherobjects.
-
A method is overridden if there is a method in the subclass that has the same name and the ________ set of parameters.
Skill/Topic: InheritanceA) SameB) DifferentC) MixedD) None of the above
-
Which of the following are primitive types?
A) byteB) StringC) integerD) float
Java Interview Questions
Ans