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

Java Notes 15 Pages

The document provides an overview of Java, a high-level programming language developed by Sun Microsystems, highlighting its features such as object-oriented design, platform independence, and security. It covers the basic structure of a Java program, data types, variables, operators, control statements, classes and objects, inheritance, polymorphism, abstraction, encapsulation, exception handling, multithreading, and Java collections. Each section outlines essential concepts and components fundamental to understanding and using Java effectively.

Uploaded by

Hitesh Harkande
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)
4 views15 pages

Java Notes 15 Pages

The document provides an overview of Java, a high-level programming language developed by Sun Microsystems, highlighting its features such as object-oriented design, platform independence, and security. It covers the basic structure of a Java program, data types, variables, operators, control statements, classes and objects, inheritance, polymorphism, abstraction, encapsulation, exception handling, multithreading, and Java collections. Each section outlines essential concepts and components fundamental to understanding and using Java effectively.

Uploaded by

Hitesh Harkande
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

1.

Introduction to Java
1 Java is a high-level programming language
2 Developed by Sun Microsystems
3 Platform independent (Write Once Run Anywhere)
4 Used for web, mobile, and desktop applications
2. Features of Java
1 Object-Oriented
2 Platform Independent
3 Secure and Robust
4 Multithreaded
3. Basic Structure of Java Program
1 class Main {
2 public static void main(String[] args) { }
3 }
4. Data Types
1 Primitive: int, float, double, char, boolean
2 Non-primitive: String, Arrays
5. Variables
1 Local variables
2 Instance variables
3 Static variables
6. Operators
1 Arithmetic operators
2 Relational operators
3 Logical operators
7. Control Statements
1 if, else
2 switch
3 Loops: for, while, do-while
8. Classes and Objects
1 Class definition
2 Object creation
3 Methods and constructors
9. Inheritance
1 Single inheritance
2 Multilevel inheritance
3 Hierarchical inheritance
10. Polymorphism
1 Method overloading
2 Method overriding
11. Abstraction
1 Abstract classes
2 Interfaces
12. Encapsulation
1 Data hiding
2 Use of getters and setters
13. Exception Handling
1 try, catch, finally
2 Types of exceptions
14. Multithreading
1 Thread class
2 Runnable interface
15. Java Collections
1 List, Set, Map
2 ArrayList, HashSet, HashMap

You might also like