25 basic interview questions.
- Why java is platform independent language?
- What is data Encapsulation ?
- What is JIT compiler?
- Why Java doesn't use pointers ?
- Why Java is not pure object oriented language ?
- What is the difference b/w instance variable and local variable ?
- What is the difference b/w equals() and equality operator (==) ?
- How method overloading different from overriding ?
- Can be declare single try block with multiple catch blocks?
- Why we use final keyword in variable, method and class ?
- Can be declare a infinite loop in java ?
- What is the difference b/w Array and ArrayList ?
- How HashSet different from TreeSet ?
- What do you mean by Constructor Overloading ?
- What is the difference b/w JVM, JRE and JDK ?
- What is the difference b/w String, StringBuffer and StringBuilder ?
- In Java static and private method overriding possible ?
- What is the difference b/w HashMap and HashTable in Java?
- How constructor different from method in Java ?
- What is synchronization in Java ? Explain with Example.
- How interfaces and abstract classes are different ?
- What are the reason behind making String immutable in Java ?
- To store confidential information Character Array or String is preferred ?
- How Java thread lifecycle works ?
- Why it is said that length() method of String class not return accurate length ?
Thanks for Reading !