Java
1. Difference between list and Set?
2. Why Do Threads Block On I/o?
Threads block on i/o (that is enters the waiting state) so that other threads may execute
while the i/o Operation is performed.
3. How Are Observer And Observable Used?
Objects that subclass the Observable class maintain a list of observers. When an Observable
object is updated it invokes the update() method of each of its observers to notify the
observers that it has changed state. The Observer interface is implemented by objects that
observe Observable objects.
4. What Is Synchronization And Why Is It Important?
With respect to multithreading, synchronization is the capability to control the access of
multiple threads to shared resources. Without synchronization, it is possible for one thread
to modify a shared object while another thread is in the process of using or updating that
object's value. This often leads to significant errors.
5. Can A Lock Be Acquired On A Class?
Yes, a lock can be acquired on a class. This lock is acquired on the class's Class object.
6. What is inheritance ? Does java support multiple inheritance? Why and why not?
7. What is diamond problem?
8. What do you mean by scope of a variable?
9. Difference between JVM, JDK.
10. Asked me to justify that JAVA is platform independent.
11. Explain public static void main
12. Explain interface, abstract class
13. Difference between ArrayList and VectorList.
14. What is linked & double linked list & stack.
15. Data abstraction.
16. Locking mechanisms in transaction management
17. What is Java Class Loader
18. How java equalsIgnoreCase() works
19. What do you mean by polymorphism?
20. What is final, finally, finalize?
21. Write a program for Overriding.
22. What is Runtime polymorphism?
23. Where are the global variables stored?
24. Why do we need threads?
25. What is an LRU cache?
1) Explain JVM,JRE and JDK.
2) Explain public static void main(String args[])
3) Why is java platform independent?
4) Explain final keyword in java.
5) When is the super keyword used?
6) Difference between swing and AWT components.
7) Explain the difference between throw and throws.
8) What are ArrayList and Vector?
9) What is polymorphism?
10) What is compile time polymorphism or static binding.
11) What is run time polymorphism and or dynamic method dispatch?
12) What is servlet?
13) How is multiple inheritance support in java?
14) Explain finalize method.
15) What happens when an object is created?
16) What are wrapper classes?
17) What is singleton class and how to make a class singleton?
18) What are the differences between .equals () and ==?
19) What are stack and heap memories?
20) Lifecycle of JSP.
21) Define scope of member variable, local variable, loop variable.
22) Explain this keyword.
26. Write the connection code to a database?
27. What is the difference between String,StringBuffer and StringBuilder.
28. What is the constructor?
29. What is composition and aggregation?
30. Difference between array, vector, list and de queue?
31. What are the public private protected modifiers behaviors on data members in
inheritance?