Thursday 28 December 2017

Java Questions


What are the main differences between Java and C++?
What are the various components of JDK (Java Development Kit) environment?
What are Java source file declaration rules?
What is Java Bytecode (.class file)?
Why is main method public static and void in Java? Will the program compile, if the main method is not static?
Which Java packages are imported by default?
What are Java array literals? How to Use Array Literals in Java?
What are the differences between finalize method, finally block, and final keyword in Java?
What is the use of finally block in exception handling in Java?
What are the uses of final keyword in Java?
String intern() method in Java. Why we use it?
System.out.println() in Java. How does it work?
How to create immutable class in Java? Why immutable class should be marked final? What are the advantages and disadvantages of immutable classes?
What are the differences between abstract class and interface in Java?
How to Override equals() Method in Java?
What is the use of instanceof or type comparison operator in Java?
What is the difference between instanceof operator and isInstance() method in Java?
What is JIT (Just-In-Time) Compiler in Java? Explain JIT Compilation.
What is abstract interface in Java?
Does Java support multi-dimensional arrays?
What are the differences between thread and process in Java?
How to find the size of a primitive data type in Java?

No comments:

Post a Comment