OOPs principles dictate how code mimics real-world systems, ensuring scalability and maintainability. Data Hiding and Encapsulation
His notes are packed with "interview-style" questions. Pay close attention to output prediction scenarios.
// Traditional Approach Runnable r1 = new Runnable() @Override public void run() System.out.println("Running thread..."); ; // Modern Lambda Expression Approach Runnable r2 = () -> System.out.println("Running thread..."); Use code with caution. Streams API
Unchecked Exceptions: Occur at runtime (e.g., NullPointerException , ArithmeticException ). Usually caused by bad program logic. try , catch , finally , throw , and throws . core java complete notes by durga sir top
Master the nuances of increment/decrement ( ++ , -- ), arithmetic, relational, logical, bitwise, assignment, and the conditional ternary operator ( ? : ). Durga Sir frequently highlights the difference between short-circuit operators ( && , || ) and regular bitwise operators ( & , | ). Control Flow Statements:
Java is strictly case-sensitive ( Total and total are different). Keywords cannot be used as identifiers.
Stores data in key-value pairs. It permits a single null key and operates efficiently via hashing algorithms. 7. Java 8 Features OOPs principles dictate how code mimics real-world systems,
The thread is instantiated but .start() has not yet been called.
A child class provides a specific implementation of a method already defined in its parent class. The JVM resolves the method call at runtime based on the actual object type, not the reference type. Encapsulation and Abstraction
Here are some of the key topics covered in Durga Sir's Core Java notes: // Traditional Approach Runnable r1 = new Runnable()
Simple assignment = and compound operators like += , -= , *= , /= . Compound operators implicitly perform type casting. Flow Control Mechanisms if-else : Standard conditional branching.
Using wait() , notify() , and notifyAll() inside synchronized contexts to avoid deadlocks. 6. Java Collection Framework