Literals are constant values assigned to variables. Java supports decimal, octal (prefix 0 ), hexadecimal (prefix 0x ), and binary (prefix 0b ) notation for numbers. You can also insert underscores between digits (e.g., 1_000_000 ) for visual readability. 3. Object-Oriented Programming (OOPs) Pillars
The IS-A relationship achieved using the extends keyword. Java supports single, multilevel, and hierarchical inheritance, but rejects multiple inheritance through classes to prevent the "Diamond Problem." Polymorphism: One name, many forms.
His diagrams of the JVM architecture (Class Loader, Runtime Data Areas, Execution Engine) are unmatched. If you want to understand StackOverflowError vs OutOfMemoryError , these notes are gold. core java complete notes by durga sir top
Runnable r = () -> System.out.println("run"); new Thread(r).start();
Pass an instance of a class implementing Runnable to a Thread constructor. This is the preferred design choice because it leaves the class free to inherit from another parent class. Thread Lifecycle States Literals are constant values assigned to variables
This ensures data validation, security, and flexibility for future updates. Inheritance
Look for highlighted "Important Note" sections; they often contain crucial, lesser-known facts about Java. His diagrams of the JVM architecture (Class Loader,
int[] x; is preferred over int x[]; because it cleanly separates the type from the variable name.
This comprehensive guide serves as an exhaustive reference blueprint based on the famous Core Java curriculum taught by Durga Sir. It covers everything from basic syntax to advanced object-oriented design and JVM internals. 1. Introduction to Java and Language Fundamentals
Durga Sir's material is always up-to-date, including a detailed study of modern Java features. topics include Lambda Expressions, Stream API, and functional interfaces (Predicate, Function, Consumer, Supplier). Java 9 topics include private methods in interfaces, try-with-resources enhancements, factory methods for collections, and JShell (the REPL tool).
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: