0% found this document useful (0 votes)
3 views

Core-Java-Concep

The document outlines key Java concepts, including differences between operators, object-oriented programming principles, memory management, multithreading, exception handling, data structures, and features of Java 8. It covers topics such as ClassLoader, garbage collection, synchronization, and the use of lambda expressions. Additionally, it discusses various Java collections and their characteristics, providing a comprehensive overview for understanding core Java functionalities.

Uploaded by

vogag38783
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Core-Java-Concep

The document outlines key Java concepts, including differences between operators, object-oriented programming principles, memory management, multithreading, exception handling, data structures, and features of Java 8. It covers topics such as ClassLoader, garbage collection, synchronization, and the use of lambda expressions. Additionally, it discusses various Java collections and their characteristics, providing a comprehensive overview for understanding core Java functionalities.

Uploaded by

vogag38783
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Core Java Concepts

1. What is the difference between == and equals() in Java?


2. Is Java purely object oriented language and why?
3. What is a ClassLoader in Java, and how does it work?
4. What is the final, finally, and finalize() in Java?
5. Can you explain the concept of pass by value vs pass by reference in Java?
6. Explain the difference between String, StringBuilder, and StringBuffer.
7. What are access modifiers in Java (public, private, protected, default)? How do they
control access?
8. What are Wrapper classes and why we need them?
9. What is Auto boxing?
10. What is Type casting?
11. What is inner class and what is static inner class?
12. What is the role of the static keyword? Can you give examples of when to use it?
13. Latest version of java and its features

OOP (Object-Oriented Programming)

14. Explain the four pillars of OOP: inheritance, encapsulation, polymorphism, and
abstraction. Can you give an example for each?
15. What is the difference between method overloading and method overriding?
16. Can you explain what an abstract class is? How does it differ from an interface?
17. What are the rules for overriding a method in Java?
18. What are super and this in Java? How are they used?

Memory Management and Performance

19. What is garbage collection, and how does it work in Java?


20. Explain the Java memory model (heap, stack, method area).
21. What is the purpose of the volatile keyword in Java?

Multithreading and Concurrency

22. What is a Thread in Java, and how can you create one?
23. What are Runnable and Callable interfaces, and what is the difference?
24. What is the ExecutorService, and how does it help manage threads?
25. How does wait(), notify(), and notifyAll() work in Java multithreading?
26. What is synchronization in Java? How does the synchronized keyword work?
27. What are volatile and transient keywords in Java?

Exception Handling

28. What is the difference between checked and unchecked exceptions?


29. How java handles the exceptions?
30. Explain how try, catch, finally blocks work in Java.
31. What is the difference between throw and throws in Java?
32. What is a custom exception in Java? How do you create one?

Data Structures and Collections

33. What is the difference between a Set, a List, and a Map in Java?
34. Explain about ArrayList with an example?
35. What are the main differences between HashMap and Hashtable?
36. What is the difference between ArrayList and LinkedList? When would you use one
over the other?
37. What is the difference between Comparable and Comparator interfaces?
38. How does HashMap work internally?
39. Can you explain the concept of hashCode() and equals()?
40. What is Iterator?
41. What is Difference between Iterator and ListIterator?
42. What is Difference between fail-fast and fail-safe?

Lambda Expressions

43. What are the features of Java 8.


44. What are the streams and give an example
45. What is Functional interface?
46. What is difference between Predicate and Consumer?
47. What is Method reference?
48. What are the uses Lamba expressions?
49. List out the some of Intermediate and Terminal operators in a stream?
50. What do you know about the Collectors, give an example?

You might also like