Core Java Interview Questions
Core Java Interview Questions
As it's a vast topic it's not possible to share everything, i am sharing all the most
important questions.
1.OOps concept.
2.compile time polymorphism, and runtime polymorphism, difference between them?
3.Method overriding all the rules(must and must).
4.Dynamic method dispatcher?
5.Static keywords and functionality?
6.why main method is static and public?
7.can we override and load of main method?
8.why we need exception handling?
9.Different exception handling rules?
10.Compile time exception and runtime exception?
11.how to create custom exception?
12.what is the internal working of exception handler?
13.Try,catch,finally rules?
14.Difference between throw and throws?
15.Difference between final,finally,finalize?
16.what is checked exception and unchecked exception?
17.what is auto-boxing and un-boxing?
18.what is wrapper class?
19.what is object cloning?
20.what is interface?
21.what is abstract class?
22.Difference between interface and abstract clas??
23.what is default method in interface?
24.why interface is 100% abstraction?
25.what is marker and tagged interface?
26.what is List?vector?and ArrayList?
27.difference between Arraylist and vector in terms of memory?
28.Difference between Iterator and listIterator?
29.ArrayList vs LinkedList?
30.what is hashSet?
31.Hashset Internal workings?
32.Difference between HasSet and LinkedHashSet?
33.What is tree Set? how it works?
34.Comparator vs comparable?
35.Difference between compareTo and compare and equals method?
36.Internal working of HashMap?
37.Difference between HashMap and HashTable?
38.What is Identity and Weak HashMap?
39.What is HashTable how it works?
40.What is thread?
41.How to create a thread?
42.Life cycle of a thread?
43.What is the purpose of Thread Scheduler?
44.Difference between start() and run()?
45.What is the best way to create a thread?
46.Difference between runnable and callable?
47.What is thread priority? default thread priority?
48.What is Yield(),Join(), and sleep()?
49.How interrupt works in thread?
50.What is synchronization?
51.How Object Locking works in java?
52.Difference between synchronization method and block?which one is better?
53.What is race condition?
54.what is inter thread communication?
55.what is wait(),notify(),notifyAll()?
56.What is green thread and daemon thread?
57.What is inner class? when we should use it?
58.What is Anonymous inner class?
59.What is volatile? when we should use it?
60.Why String is immutable?
61.What is the difference between String buffer and String builder?
62.what is design patterns?
63. what is singleton,Factory,Observer design pattern?
64.What is thread group?
65.What is reentrant locking?
66.what is thread pool and executor framework?
67.what is callable interface? hoe to store the return result of callable?
68.what is thread local?
69.What is lambda expression? why we need lambads?
70.How lambda works?
71.what is functional Interface?
72. what is consumer and predicates?
73.what is java concurrent API?
74.What is concurrent HashMap? how is works?
75.what is bucket level locking?
76.what is copyOnWrite arrayList?
77.Difference between HasMap and concurrent HasMap?
78.How to achieve synchronization without using the keyword?
79.what is FailFast and FailSafe iterator?
80.what is the difference between equals() and == method?
81.What is shutDown hook in java?
81.JVM architecture?
82. How memory Management works in java?
83.how to create a immutable class with date or mutable objects?
84.what is garbage collection in java?
85.Difference between stack and heap memory in java?
86.what is deep cloning in java?
87.what is method referrence?
88.what is stream ?
89.map vs flatmap in stream api?
90.what is early and lazy initialization?
91.what is parallel stream? how iot works?
92.what is covariant return type?
93.How we can execute any code even before main method?
94.scope of all access modifier?
95.What is priority queue?
95.what is the difference between submit() and save() in executor framework?
96.What is serialization?
97.what is reflection in java?
98.what is Enumaration?
99.Why wait and notify called from synchronized method in Java?
100.what is try with resources?
!!!Happy Learning :)!!!!
Regards,
Kk:)