JAVA Programming (A.Y.
2023-2024)
UNIT 1 - Detailed Notes
1. Introduction
Java is a high-level, object-oriented, platform independent programming language developed by
Sun Microsystems and later maintained by Oracle.
2. Features
Simple, Secure, Robust, Portable, Platform Independent, Multithreaded, Distributed, Dynamic.
3. OOP Concepts
Class, Object, Encapsulation, Inheritance, Polymorphism and Abstraction with suitable examples.
4. JVM
Flow: Source Code (.java) -> javac Compiler -> Bytecode (.class) -> JVM -> Output.
5. Data Types
byte, short, int, long, float, double, char and boolean.
6. Variables
Local, Instance and Static variables.
7. Operators
Arithmetic, Relational, Logical, Assignment, Bitwise and Ternary operators.
8. Control Statements
if, if-else, switch, for, while, do-while, break and continue.
9. Strings
String is immutable. Common methods: length(), substring(), equals(), toUpperCase().
10. StringBuffer
Mutable string class. Methods: append(), insert(), delete(), reverse().
Important Questions
2 Marks: JVM, Bytecode, OOP. 5 Marks: Features of Java, Data Types. 10 Marks: JVM
Architecture, OOP Concepts, Control Statements with Programs.