Core Java Interview Questions
- Can we call finalize() method?
- Can we declare an anonymous class as both extending a class and implementing an interface?
- How Observer and Observable are used?
- What are the differences between boolean & operator and & operator
- What are transient variables in java?
- What are Wrapper Classes?
- What is an abstract method?
- What is List interface?
- What is synchronization
- What is the difference between yield() and sleep()?
- What is the difference between time slicing and preemptive scheduling ?
- What is the initial state of a thread when it is created and started?
- What is the use of the finally block?
JSP Servlets
- Difference between GET and POST
- What are the different ways for session tracking?
- What is difference between custom JSP tags and beans?
- What is servlet context?
- What is servlet mapping?
- What is session?
- What is the difference between JSP and Servlets?
- What mechanisms are used by a Servlet Container to maintain session information?
EJB (Enterprise Java Bean) Interview Questions
- What is EJB?
- What are different types of entity beans?
- What are different types of session bean?
- What are the different type of Enterprise JavaBeans?
- What is a Stateful Session bean?
- What is abstract schema?
- What is an Entity Bean?
- What is BMP (Bean managed persistence)?
- What is CMP (Container Managed Persistence)?
- What is Session Bean?
- What is stateless session bean ?
- When to use a stateless session bean?
- When to Use Session Beans?
- When to use Stateful session bean?
- When we should use Entity Bean ?
JMS interview questions
- What are the advantages of JMS?
- What are the different parts of a JMS message?
- What is asynchronous messaging?
- What is Byte Message?
- What is JMS?
- What is Map message?
- What is messaging?
- What is object message?
- What is Stream Message?
- What is synchronous messaging?
- What is text message?
- What is the difference between Byte Message and Stream Message?
- What is the difference between queue and topic?
- What is the Role of the JMS Provider?
- What type messaging is provided by JMS
JDBC interview questions
- What is JDBC Driver?
- What is JDBC?
- What are stored procedures?
- How do you handle your own transaction?
- Is the JDBC-ODBC Bridge multi-threaded?
- What are the different JDB drivers available?
- What are the steps required to execute a query in JDBC?
- What does Class.forName return?
- What is a ResultSet?
- What is cold backup, hot backup, warm backup recovery?
- What is Connection pooling?
- What is Connection?
- What is DriverManager?
- What is the advantage of denormalization?
- What is the fastest type of JDBC driver?
General Questions
- Can a method be static and synchronized?
- Can an application have multiple classes having main method?
- Can I have multiple main methods in the same class?
- Describe the principles of OOPS
- Difference between == and equals method
- Expain the reason for each keyword of public static void main(String args[])?
- Explain the Encapsulation principle.
- Explain the Inheritance principle.
- Explain working of Java Virtual Machine (JVM)?
- How can I swap two variables without using a third variable?
- How can one prove that the array is not null but empty?
- How is it possible for two String objects with identical values not to be equal under the == operator?
- How to convert String to Number in java program?
- If you’re overriding the method equals() of an object, which other method you might also consider?
- In System.out.println(), what is System, out and println?
- What are different types of access modifiers?
- What are Java Access Specifiers?
- What are the differences between == and .equals()?
- What do you understand by a variable?
- What do you understand by casting in java language? What are the types of casting?
- What do you understand by downcasting?
- What do you understand by numeric promotion?
- What if I write static public void instead of public static void?
- What if the main method is declared as private?
- What is a native method?
- What is a static method?
- What is Byte Code?
- What is data encapsulation?
- What is difference between String and StringTokenizer?
- What is explicit casting?
- What is implicit casting?
- What is meant by pass by reference and pass by value in Java?
- What is phantom memory?
- What is reflection API? How are they implemented?
- What is the difference between a while statement and a do statement?
- What is the first argument of the String array in main method?
- What is the Java Virtual Machine (JVM)?
- What is the Locale class?
- What is the ResourceBundle class?
- What is the SimpleTimeZone class?
- What type of parameter passing does Java support?
- What would you use to compare two String variables - the operator == or the method equals()?
- When is static variable loaded? Is it at compile time or runtime? When exactly a static block is loaded in Java?
- Which class is the superclass of every class?
- Why oracle Type 4 driver is named as oracle thin driver?
- Why there are no global variables in Java?
NOTE: If you want answer to these questions or any selected question or have any query,then please leave your comment below with your email_id or mail me at blogwriters@rediffmail.com with proper subject and question.