- OOPs concepts Encapsulation, Abstraction, Inheritance, Polymorphism and explain
- Exception hierarchy in inheritance
- Parent child override scenario
- Can we override static and private method?
- Difference between Java 7 and Java 8 interface (static methods and default methods introduced)
- Final, Finally, Finalize
- Equals and hashcode
- Why checked exception also called compile time exception, is it occurs in compile time?
- How to write custom exception?
- Throw and throws exception
- Exception order
- return usage in try, catch and finally block
- Ss finally block always executed?
- How many ways we can create string object?
- String constant pool and working of it
- Why string is immutable?
- String vs StringBuffer vs StringBUilder
- How to write your own custom immutable class?
- Which is good to store passwords char array or string?
- What is marker interface? (Serializable, Cloneable, Remote) and how and when it works?
- Collections - List(ArrayList, LinkedList), Set(HashSet, LinkedHashSet, TreeSet), Map(HashMap, LinkedHashMap, TreeMap)
- Concurrent - CopyOnWriteArrayList, CopyOnWriteArraySet, ConcurrentHashMap
- List vs Set
- ArrayList vs LinkedList
- Custom array list without duplicates (extend array list and override add method)
- ArrayList al = new ArrayList(); vs List l = new ArrayList<>();
- Declaring list with final keyword
- Why set does not allow duplicates?
- Comparable vs Comparator
- Fail fast vs fail safe iterator
- HashMap vs ConcurrentHashMap
- HashTable vs ConcurrentHashMap
- Collections.synchronizedMap() - HashTable implementation - Entired data structure is locked
- Internal working of HashMap - hash, bucket index, equals check, Linked List, Load factor, Balanced tree
- Null key hashmap - 0th index bucket
- TreeMap working
Last active
November 7, 2023 05:17
-
-
Save vengateshm/b39d39526fcf25c447469cbb66b725da to your computer and use it in GitHub Desktop.
Core Java Interview questions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment