Untitled Spreadsheet
Untitled Spreadsheet
CORE JAVA
1 What are the core principles of Object-Oriented Programming (OOP)?
2 Can you explain the concept of platform independence in Java?
3 Explain the difference between JDK, JRE, and JVM
4 What are the access modifiers supports in java ?
5 What is encapsulation? How is encapsulation achieved in Java using access modifiers?
6 What are the benefits of encapsulation?
7 Explain the difference between encapsulation and data hiding.
8 How does encapsulation relate to object-oriented programming principles?
Can you explain the role of getters and setters in encapsulation? How can you achieve encapsulation without using
getters and setters?
9
What is inheritance in Java?Explain the different types of inheritance supported by Java.
10
11 What is the difference between extends and implements keywords?
12 What is the use of the final keyword in inheritance?
13 What is the difference between early binding and late binding?
14 How do you achieve runtime polymorphism in Java?
15 Is multiple inheritance support by java ? No, then What alternative is used to acheive the multiple inheritance in java?
16 Difference between this and super keyword ?
17 Difference between methods and constructor in java?
18 Difference between Interfaces and abstract classes ?
19 What is method overloading and overriding?
20 Difference between final and finally in java ?
21 Iterators and ListIterators
22 Explain the difference between ArrayList and LinkedList.
23 Describe the garbage collection process in Java.
24 What is the difference between Error and Exception?
25 What is Exception? Explain the different types of exceptions in Java.
26 What is the difference between checked and unchecked exceptions?
27 Explain the try-catch-finally block.
28 What is the use of throw and throws keywords?
29 Can we have multiple catch blocks for a single try block?
30 Explain the difference between NoClassDefFoundError and ClassNotFoundException.
31 What is the difference between NullPointerException and ArrayIndexOutOfBoundsException?
32 What is multithreading? Explain the different ways to create threads in Java.
33 What is thread synchronization?
34 What is the difference between wait() and sleep() methods?
35 Explain the concept of inner classes.
36 What is serialization and deserialization?
37 What is the difference between JVM and JIT compiler?
38 What is reflection in Java?
39 What is a Deadlock situation?
40 JDBC
41 What is JDBC?Explain the different types of JDBC drivers.
42 What are the steps involved in establishing a database connection using JDBC?
43 Explain the difference between Statement, PreparedStatement, and CallableStatement.
44 What is ResultSet? Explain its types.
Explain the concept of transaction management in JDBC.
45 * Describe the ACID properties and how to use transactions in JDBC.
46 What is the role of metadata in JDBC?
47 How do you handle database connection pooling in a Java application?
48 What are the challenges in using JDBC in a multi-threaded environment?
49 SERVLET
50 What is a servlet? Explain the servlet lifecycle.
51 Explain the concept of request and response objects.
52 How do you handle HTTP headers in servlets?
53 What is session tracking? Explain different techniques.
54 What is the difference between forward() and sendRedirect() methods?
55 How do you handle file uploads in servlets?
56 JSP
57 What is the relationship between servlets and JSP?
58 When to use servlets and when to use JSP?
59 How do you share data between servlets and JSPs?
60 How would you implement user authentication and authorization in a servlet-based application?
61 Explain how to handle errors and exceptions in servlets.
62 XML
63 What is XML? Explain the difference between XML and HTML.
64 Explain the different components of an XML document.
65 What is XML parsing? Explain the difference between DOM and SAX parsers.
66 How do you validate an XML document against a DTD or XML Schema?
67 What is XML Schema?
68 What is XML Encryption?
69 SPRING
70 What is Spring Framework? Explain Dependency Injection (DI) and Inversion of Control (IoC).
71 What are the different types of DI?
72 What is a Spring Bean? Explain its lifecycle.
Explain common Spring annotations like @Component, @Autowired, @Qualifier, @Service, @Repository, and
73 @Controller.
74 What is the difference between @Component and @Bean annotations?
75 What is Spring JDBC?
76 How does Spring Data JPA simplify data access?
77 What is Aspect-Oriented Programming (AOP)? Explain the key components of Spring AOP.
78 What is Spring MVC? Explain the components of a Spring MVC application.
79 How does Spring MVC handle request and response?
80 What are the different types of controllers in Spring MVC?