Page 1
Introduction
Java is an object-oriented programming language. A class is a blueprint for objects.
Page 2
Classes and Objects
Class contains fields, methods, and constructors. Objects are created using the new keyword.
Page 3
Constructors & this
Constructors initialize objects. Types: default and parameterized. 'this' refers to the current object.
Page 4
Methods & Access Modifiers
Methods define behavior. Access modifiers: public, private, protected, default. Static belongs to
class.
Page 5
Summary
Remember: Class=Blueprint, Object=Instance, Constructor initializes, Methods perform actions,
Static belongs to class.