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

OOPS Java Complete Notes

The document provides comprehensive notes on Object-Oriented Programming (OOP) through Java, covering fundamental concepts such as encapsulation, inheritance, and polymorphism. It details the basic structure of Java, including syntax, tokens, statements, and data types, as well as command line arguments and method types. Additionally, it explains escape sequences used in Java programming.

Uploaded by

y.anitha9000
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)
1 views1 page

OOPS Java Complete Notes

The document provides comprehensive notes on Object-Oriented Programming (OOP) through Java, covering fundamental concepts such as encapsulation, inheritance, and polymorphism. It details the basic structure of Java, including syntax, tokens, statements, and data types, as well as command line arguments and method types. Additionally, it explains escape sequences used in Java programming.

Uploaded by

y.anitha9000
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

Object-Oriented Programming through Java

(OOPS) - Complete Notes


1. Basic Concepts & Principles
OOP is a programming paradigm based on objects. Principles: Encapsulation, Abstraction,
Inheritance, Polymorphism. Example: class Car {}

2. Basic Structure of Java


Documentation, package, import, interface(optional), class, main method, methods. Syntax: public
class A { public static void main(String[] args){ [Link]('Hello');}}

3. Java Tokens
Tokens: Keywords, Identifiers, Literals, Operators, Separators, Comments. Flow: Java Tokens ->
Keywords/Identifiers/Literals/Operators/Separators.

4. Java Statements
Declaration, Assignment, Selection(if,switch), Iteration(for,while,do-while),
Jump(break,continue,return).

5. Variables, Keywords & Data Types


Variable stores data. Example: int a=10; Valid identifier: totalMarks. Invalid: 2num. Primitive:
byte,short,int,long,float,double,char,boolean.

6. Command Line Arguments


Arguments passed through main(String[] args). Example: java Test Hello

7. Static and Dynamic Methods


Static belongs to class: [Link](); Dynamic(instance): [Link]();

8. Escape Sequences
\n New Line, \t Tab, \b Backspace, \r Carriage Return, \f Form Feed, \' Single Quote, \" Double
Quote, \\ Backslash

You might also like