Java Interview Questions and Answers
Frequently asked Interview Question and Answer in Java suites for both Freshers and Experienced Candidates.Interview Question and Answer Set 1
1. What is difference between JDK,JRE and JVM? JVMis an acronym for Java Virtual Machine, it is an abstract...
Interview Question and Answer Set 3
21.Can we use String in the switch case? Yes from Java 7 onward we can use String in switch case but it is...
Interview Question and Answer Set 5
41.What is the difference between processes and threads ?A process is an execution of a program, while a Thread...
Interview Question and Answer Set 2
11.Why string objects are immutable in java? Because java uses the concept of string literal. Suppose there...
Interview Question and Answer Set 4
31.Explain the life cycle of a Servlet On every client’s request, the Servlet Engine loads the servlets and invokes...
Interview Question and Answer Set 6
51. What are the advantages of hibernate?Hibernate is portable i mean database independence...
Interview Question and Answer Set 7
61.What is the difference between preemptive scheduling and time slicing?Under preemptive scheduling, the highest...
Interview Question and Answer Set 9
81.What does the JDBC Connection interface?The Connection interface maintains a session with the database...
Interview Question and Answer Set 8
71.Can we call the run() method instead of start()?yes, but it will not work as a thread rather it will work as...
Interview Question and Answer Set 10
91.What are Directives ?Directives are instructions that are processed by the JSP engine, when the page is compiled...