Interview questions
JAVA interview questions – page 86
2,804 questions. Tap “Show answer” to check yourself.
-
Tell the restriction imposed on a static method or a static block of code?
-
What do you mean by an enumeration?
-
Define an object's lock and which object's have locks?
-
What do you mean by Downcasting?
-
What are the order of precedence and association and how are they used?
-
Can an Interface extend another Interface?
-
Can a double value be cast to a byte?
-
Tell the difference between Path and Classpath?
-
What do you mean by constructor chaining and how is it achieved in Java?
-
What do you mean by a pointer and does Java support pointers?
-
What do you mean by platform?
-
Define a JVM?
-
Are JVM's platform independent?
-
Tell the main difference between Java platform and other platforms?
-
What will be the default values of all the elements of an array defined as an instance variable?
-
What are the restrictions placed on method overriding?
-
What is platform independence
-
Does constructor return any value?
-
What do you mean by static method?
-
If I don't provide any arguments on the command line, then the String array of Main method will be empty or null?
-
What do you think the default value of the local variables?
-
What will be the initial value of an object reference which is defined as an instance variable?
-
What will happen if the static modifier is removed from the signature of the main method?
-
Why main method is static?
-
What if I write static public void instead of public static void?
-
Tell the difference between object oriented programming language and object based programming language?
-
Can you have virtual functions in Java?
-
What do you mean by final variable?
-
Is there any possibility that we can override the overloaded method?
-
Tell; difference between aggregation and composition?