0% found this document useful (0 votes)
5 views15 pages

Java Complete Notes

Java is a high-level, object-oriented programming language developed by Sun Microsystems in 1995, known for its WORA principle. Key features include simplicity, security, and high performance, with a structure comprising JDK, JRE, and JVM. The document covers installation, basic programming concepts, data types, operators, control statements, and object-oriented programming principles.

Uploaded by

anishk8320
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)
5 views15 pages

Java Complete Notes

Java is a high-level, object-oriented programming language developed by Sun Microsystems in 1995, known for its WORA principle. Key features include simplicity, security, and high performance, with a structure comprising JDK, JRE, and JVM. The document covers installation, basic programming concepts, data types, operators, control statements, and object-oriented programming principles.

Uploaded by

anishk8320
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

Page 1: Introduction to Java

Java is a high-level, object-oriented, platform-independent programming language developed by


Sun Microsystems in 1995. It follows the principle of Write Once, Run Anywhere (WORA). Java is
widely used for web, mobile, desktop, and enterprise applications.
Page 2: History of Java

Java was developed by James Gosling and his team. Initially named Oak, it was later renamed
Java. Sun Microsystems released Java in 1995, and later Oracle Corporation acquired it in 2010.
Page 3: Features of Java

Important features include: Simple, Object-Oriented, Platform Independent, Secure, Robust,


Portable, Multithreaded, Distributed, and High Performance.
Page 4: JDK, JRE, JVM

JVM runs Java bytecode. JRE provides runtime libraries and JVM. JDK includes development tools
like compiler (javac). Relationship: JDK ⊃ JRE ⊃ JVM.
Page 5: Installation of Java

Steps: Download JDK, install it, set environment variables, and verify using command: java
-version.
Page 6: First Java Program

Example: public class Hello { public static void main(String[] args) { [Link]("Hello
World"); } }
Page 7: Java Variables

Variables store data. Types: int, float, double, char, boolean, String. Example: int a = 10;
Page 8: Data Types

Primitive: int, float, double, char, boolean. Non-Primitive: String, Arrays, Classes.
Page 9: Operators in Java

Arithmetic (+, -, *, /), Relational (==, !=, >, <), Logical (&&, ||), Assignment (=), Increment/Decrement
(++/--).
Page 10: Control Statements

Decision making: if, if-else, switch. Loops: for, while, do-while. Jump: break, continue.
Page 11: Arrays

Array stores multiple values of same type. Example: int[] arr = {1,2,3};
Page 12: Object-Oriented Programming

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


Page 13: Constructors

Constructor initializes objects. Default and Parameterized constructors are common types.
Page 14: Inheritance and Polymorphism

Inheritance allows reuse of code using extends keyword. Polymorphism allows methods to behave
differently.
Page 15: Exception Handling

Exception handling uses try, catch, finally blocks to manage runtime errors safely.

You might also like