Java Ques1
Java Ques1
What is JVM, and why is Java called the “Platform Independent Programming
Language”?
Difference between JDK and JRE.
What is the purpose of the finalize() method in Java?
Explain the difference between ArrayList and LinkedList.
What is the Singleton design pattern?
How does exception handling work in Java?
Differences between equals() and hashCode() methods.
What is the transient keyword in Java?
Explain the concept of multithreading in Java.
What are checked exceptions and unchecked exceptions?
Describe the volatile keyword in Java.
What is the difference between == and .equals() for comparing objects?
Explain the static keyword in Java.
What is the purpose of the StringBuilder class?
How does garbage collection work in Java?
What is the difference between HashMap and HashTable?
Explain the super keyword.
What are annotations in Java?
Describe the try-with-resources statement.
What is the difference between abstract class and interface?
Explain the this keyword.
How do you handle concurrent modification in a collection?
What is the purpose of the Comparable interface?
Describe the ClassLoader in Java.
What is the difference between Stack and Queue?
Explain the transitive property of equality.
How do you create an immutable class in Java?
What is the strictfp keyword?
Describe the java.util.concurrent package.
Explain the instanceof operator.
What is the difference between String and StringBuffer?
Describe the ThreadLocal class.
How do you handle exceptions in a multi-threaded environment?
Explain the assert statement.
What is the purpose of the System.gc() method?
Describe the java.util.stream package.
How do you achieve method overloading and method overriding?
Explain the Object class methods (equals(), hashCode(), toString()).
What is the strictfp keyword?
Describe the java.util.concurrent package.
Explain the instanceof operator.
What is the difference between String and StringBuffer?
Describe the ThreadLocal class.
How do you handle exceptions in a multi-threaded environment?
Explain the assert statement.
What is the purpose of the System.gc() method?
Describe the java.util.stream package.
How do you achieve method overloading and method overriding?
Explain the Object class methods (equals(), hashCode(), toString()).
What is the difference between ArrayList and LinkedList?
Explain the Singleton design pattern.
How does exception handling work in Java?
Differences between equals() and hashCode() methods.
What is the transient keyword in Java?
Explain the concept of multithreading in Java.
What are checked exceptions and unchecked exceptions?
Describe the volatile keyword in Java.
What is the difference between == and .equals() for comparing objects?
Explain the static keyword in Java.
What is the purpose of the StringBuilder class?
How does garbage collection work in Java?
What is the difference between HashMap and HashTable?
Explain the super keyword.
What are annotations in Java?
Describe the try-with-resources statement.
What is the difference between abstract class and interface?
Explain the this keyword.
How do you handle concurrent modification in a collection?
What is the purpose of the Comparable interface?
Describe the ClassLoader in Java.
What is the difference between Stack and Queue?
Explain the transitive property of equality.
How do you create an immutable class in Java?
What is the strictfp keyword?
Describe the java.util.concurrent package.
Explain the instanceof operator.
What is the difference between String and StringBuffer?
Describe the ThreadLocal class.
How do you handle exceptions in a multi-threaded environment?
Explain the assert statement.
What is the purpose of the System.gc() method?
Describe the java.util.stream package.
How do you achieve method overloading and method overriding?
Explain the Object class methods (equals(), hashCode(), toString()).
What is the strictfp keyword?
Describe the java.util.concurrent package.
Explain the instanceof operator.
What is the difference between String and StringBuffer?
Describe the ThreadLocal class.
How do you handle exceptions in a multi-threaded environment?
Explain the assert statement.
What is the purpose of the System.gc() method?
Describe the java.util.stream package.
How do you achieve method overloading and method overriding?
Explain the Object class methods (equals(), hashCode(), toString()).
What is the strictfp keyword?
Describe the java.util.concurrent package.
Explain the instanceof operator.
What is the difference between String and StringBuffer?