Complete list of java interview questions
Core Java
- Type Erasure
- Address of a Java Object
- Java’s toLowerCase() has got a surprise for you!
- Is Your Java Code Privileged?
- Serialize / De-Serialize Java Object From Database
- Bye bye GoDaddy
- Java Serialization
- Java Peer Class
- Java String Concatenation
- Formatting Decimal Numbers
- Java Number Format
- Java Overflow And Underflow
- Overloading And Overriding
- Java Clone, Shallow Copy and Deep Copy
- NullPointerException, null – Bad, good and ugly
- Differentiate JVM JRE JDK JIT
- Explain the java this keyword.
- Is javadoc comment a type of standard java comment?
- Check list for Internationalization (I18n)
- What is scoped memory and why java uses it?
- What is a static import in java?
- How many types of java variables are there?
- Explain the Final Keyword in Java.
- Access Modifiers In Java
- Explain the Java Static Modifier
- Difference between static and non-static java inner class.
- Can a java subclass declare a private method available in its java superclass?
- Java Pass By Value and Pass By Reference.
- Can an unreachable Java object become reachable again?
- Java finalization
- Java garbage collection
- Does Java garbage collection guarantee that a program will not run out of memory?
JSP
- How to pre-compile JSP?
- Explain the scope of JSP objects.
- Difference between forward and sendRedirect
- What are the types of JSP Comments?
- Explain the JSP Implicit Objects
- Difference between JSP include directive and JSP include action
- Difference between _jspService() and other life cycle methods.
- JSP Life Cycle – explain.
Servlet
- URI And URL Difference
- Session Life Cycle
- Servlet JSP Communication
- Explain the methods used for session tracking.
- What happens if you call destroy() from init() in java servlet?
- How to avoid IllegalStateException in java servlet?
- What is servlet mapping?
- Difference between HttpServlet and GenericServlet
- What is preinitialization of a java servlet?
- Difference between ServletConfig and ServletContext
- Difference between ServletRequest.getRequestDispatcher and ServletContext.getRequestDispatcher
- ServletRequest and ServletResponse – Explain
- Why not declare a constructor in servlet?
- Servlet Life Cycle – Explain
- What is a filter?

