CoreJava Questions
1. Explain OOP’s concepts
2. Difference Between Overloading and Overriding.
3. Explain encapsulation. Where you have used in your project.
4. What is method hiding.
5. Can we override static methods?
6. What is Abstraction.
7. How to create singleton class.
8. How can we create immutable classes.
9. Difference between final,finally,finalize.
[Link] you explain singleton class with an example.
[Link] is interface.
[Link] between interface and abstract class.
[Link] interface variable by default public,static,final
[Link] between the String , StringBuffer and StringBuiledr.
[Link] between the == and equal().
[Link] you tell me the Object class methods.
[Link] many ways we can create Thread.
[Link] we start thread once again.
[Link] me the thread class constructors.
[Link](),join(),sleep().
[Link] between the notify() and notifyAll().
[Link] method.
[Link] between the synchronized() and synchronized block.
[Link] we declare method as private, so is it possible to override that method.
[Link] between the [Link]() and [Link]().
[Link] happened we don’t override run() in thread class.
[Link] we overload run() or not. If yes what happened.
[Link] is exception.
[Link] between exception and error.
[Link] is checked and un-checked exception.
[Link] not found exception will come under which exception.
[Link] not found exception will come under which exception.
[Link] is the super class for all exceptions.
[Link] can we create user defined exception.
[Link] to handle exceptions in your project.
[Link] we write try with out catch or finally block.
[Link] many methods is their to print exception.
[Link] is the difference between collection and collection framework.
[Link] is the difference between collection and map.
[Link] between List and Set.
[Link] between ArrayList and LinkedList.
[Link] are the legacy classes in collections.
[Link] can we create synchronized version of arraylist.
[Link] is enumeration.
[Link] is iterator.
[Link] is ListIterator.
[Link] between the iterator and ListIterator.
[Link] many cursors are in collections.?
[Link] is map
[Link] between hash map and hash table.
[Link] between comparable and comparator.
JDBC
1. What is JDBC.
2. How many interfaces in JDBC.
3. What is the difference between statement and prepared statement.
4. JDBC2.0 features.
5. JDBC 3.0 features.
6. Difference between ResultSet and RowSet.
7. Explain Connection pooling
8. What is the difference between pool and cache .
9. What is the difference between DriverManager and DataSource.
SERVLET
1. What is servlet.
2. How many ways we can crete servlet
3. Difference between GenericServlet and HttpServlet.
4. What is servlet config.
5. What is servlet contex.
6. Difference between servlet cofig and servlet context.
7. What is session tracking.
8. How many way’s we can create session tracking.
9. What is the difference between forward and sendRedirect mechanism .
[Link] is cookie.
[Link] is the difference between cookie and session.
[Link] to create cookie.
[Link] many types of cookies is their.
[Link] to set session time out.
[Link] between doGet() and doPost().
[Link] HttpServlet class given as abstract.
JSP
1. What is JSP.
2. How many phases in JSP.
3. Difference between servlet and jsp.
4. What is declarative tag in jsp.
5. How handle exceptions in jsp.
6. How many implicit objects in jsp.
7. Difference between include directive and include action.
8. How many page attributes in jsp.
9. How to create custom tags in jsp.
[Link] is JSTL.
[Link] many types of tag libs in JSTL.
STRUTS
1. Explain struts flow.
2. How many types of form beans in struts.
3. What is Action Class in servlet.
4. Difference between ActionForm and DynaActionForm.
5. Why we use Validator Form
6. What is the difference between validator form and Dyna validator form.
7. What is the difference between Dispatch Action and LookUpDispatch
Action.
8. What is switch action when we use this.
9. What is the difference between struts1.x and 2.x.
[Link] is the use of interceptor.
[Link] many interceptor are available in struts.
[Link] struts configuration file.
[Link] to configure struts configuration file in deployment file.
[Link] to configure validator frame work in struts configuration file.
Hibernate
1. What is hibernate.
2. Why we use hibernate.
3. What is the difference between JDBC and Hibernate.
4. Explain hibernate configuration file.
5. How many types of generators are available in hibernate.
6. What is table per class.
7. What is table per sub class .
8. What is table per concrete class .
9. What is HQL.
[Link] is the difference between HQL and CreteriaAPI.
[Link] in nativeSQL.
[Link] is entity query.
[Link] is scalar query.
[Link] is named query.
[Link] ships(one-to-many, many-to-one, many-to-many).
SPRING
1. What is spring.
2. What is spring IOC.
3. What is Dependency look up.
4. What is dependency injection.
5. How many types of dependency injections are their in spring.
6. Bean scopes.
7. Bean auto-wiring.
8. Difference between setter injection and constructor injection.
9. How many types of bean factory’s in spring
10. Where you used spring in your project.