0% found this document useful (0 votes)
2 views10 pages

Java Study Notes 10 Pages

The document provides comprehensive notes on Java, covering its features, data types, operators, control statements, methods, arrays, object-oriented programming concepts, exception handling, file handling, and advanced topics. It includes examples and highlights important concepts such as method overloading and collections. Additionally, it touches on interview topics related to Java, such as the differences between String and StringBuilder, and the roles of JVM, JRE, and JDK.

Uploaded by

sonukaran3004
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 views10 pages

Java Study Notes 10 Pages

The document provides comprehensive notes on Java, covering its features, data types, operators, control statements, methods, arrays, object-oriented programming concepts, exception handling, file handling, and advanced topics. It includes examples and highlights important concepts such as method overloading and collections. Additionally, it touches on interview topics related to Java, such as the differences between String and StringBuilder, and the roles of JVM, JRE, and JDK.

Uploaded by

sonukaran3004
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 Notes – Complete 10 Pages

Page 1 – Introduction to Java


Java is a high-level, object-oriented programming language.

Features:
• Platform independent
• Secure
• Robust
• Multithreaded

Example:
public class Main {
public static void main(String[] args){
[Link]("Hello Java");
}
}
Page 2 – Variables & Data Types
Primitive:
byte, short, int, long
float, double
char, boolean

Reference:
String
Array
Object
Page 3 – Operators
Arithmetic: + - * / %
Comparison: == != > <
Logical: && || !
Assignment: = += -=

Example:
int a=10;
Page 4 – Control Statements
if / else
switch

Loops:
for
while
do while

break
continue
Page 5 – Methods
public static int add(int a,int b){
return a+b;
}

Concepts:
Method Overloading
Return Types
Page 6 – Arrays & Collections
Arrays:
int[] arr

Collections:
ArrayList
HashMap
HashSet
LinkedList
Page 7 – OOP Concepts
Class
Object
Inheritance
Polymorphism
Abstraction
Encapsulation
Page 8 – Exception Handling
try
catch
finally
throw
throws

Example:
try{
}
catch(Exception e){
}
Page 9 – File Handling & Streams
FileReader
FileWriter
BufferedReader

Streams:
InputStream
OutputStream
Page 10 – Advanced Java & Interview
Topics:
Generics
Collections Framework
JDBC
Multithreading
Lambda
Stream API
Spring Boot

Interview:
String vs StringBuilder
HashMap internals
JVM vs JRE vs JDK

You might also like