0% found this document useful (0 votes)
2 views1 page

Java Oop Notes

The document provides an overview of key Java Object-Oriented Programming (OOP) concepts including classes, objects, encapsulation, inheritance, polymorphism, and abstraction. It also covers important topics such as constructors, methods, the static keyword, type casting, and error types. Additionally, it highlights Java's features like simplicity, platform independence, security, and its object-oriented nature.

Uploaded by

darjihetvi2006
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Java Oop Notes

The document provides an overview of key Java Object-Oriented Programming (OOP) concepts including classes, objects, encapsulation, inheritance, polymorphism, and abstraction. It also covers important topics such as constructors, methods, the static keyword, type casting, and error types. Additionally, it highlights Java's features like simplicity, platform independence, security, and its object-oriented nature.

Uploaded by

darjihetvi2006
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Java OOP Easy Notes

OOP Concepts: Class, Object, Encapsulation, Inheritance, Polymorphism, Abstraction.

Inheritance: Child class uses parent class features.

Polymorphism: One method, many forms.

Encapsulation: Hiding data using private variables and methods.

Constructor: Special method used to initialize objects. Called automatically.

Constructor Overloading: Same constructor name with different parameters.

Methods: Used to perform tasks and reuse code.

Static Keyword: Belongs to class, no object needed.

This Keyword: Refers to current object.

JVM: Runs Java bytecode and converts it into machine code.

Bytecode: Intermediate code (.class file) generated after compilation.

Type Casting: Converting one data type to another.

Widening: small to big (automatic).

Narrowing: big to small (manual).

Inner Class: Class inside another class.

Loops: for, while, do-while used to repeat code.

Errors: Syntax (compile), Runtime, Logic errors.

Java Features: Simple, Platform Independent, Secure, Object-Oriented.

You might also like