Java Interview Notes provides an extensive coverage of topics that are frequently discussed during Java technical interview round, along with exhaustive list of interview questions for each topic.
What this book covers?
1. Explanation for 136 Java topics, ranging from basics to advance. 2. Answers to 700 Java technical Interview questions. 3. Code snippets to explain the concept. 4. Visual representation of the concept, where required.
The concepts are organized in very precise and concise manner, in small chapters and are to the point.
CONTENT:
Java Fundamentals : Java Program Anatomy Java Program and JVM Data Types Naming Convention Object class Access Modifiers static final static initialization block finally() finalize() Widening vs Narrowing Conversion getters and setters varargs vs object array default interface method static interface method Annotations Preferences Pass by value or reference
Fundamental Design Concepts : DI vs IoC Service Locator Diamond Problem Programming to Interface Abstract class vs Interface Internationalization and Localization Immutable Objects Cloning
Data Types : NaN EnumSet Comparing Data Types Float comparison String comparison Enum comparison enum vs public static int field Wrapper Classes Auto boxing and Auto unboxing BigInteger and BigDecimal
Strings : String Immutability String Literal vs Object String Interning String Pool Memory Management Immutability - Security issue Circumvent String immutability StringBuffer vs StringBuilder Unicode
Inner Classes : Inner Classes Static Member Nested Class Local Inner Class Non-Static Nested Class Anonymous Inner Class
Generics : Generics Generics-Type Wildcards Generics - Method Java Generics vs Java Array Generics - Type Erasure Co-variance Contra-variance Co-variance vs Contra-variance
Collections : Collection design aspects Collection Fundamentals Collection Interfaces Collection Types Set List Queue Map Algorithms Comparable vs Comparator hashCode() and equals() HashTable vs HashMap Synchronized vs Concurrent Collections Iterating over collections fail-fast vs fail-safe
Error and Exception : Exception Checked vs Unchecked vs Error Exception Handling Best Practices try-with-resource
Threading : Threading Terms Thread Lifecycle Thread Termination Runnable vs Thread Runnable vs Callable Daemon Thread Race Condition and Immutable object Thread Pool