KEMBAR78
Java Basics | PDF
0% found this document useful (0 votes)
7 views2 pages

Java Basics

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)
7 views2 pages

Java Basics

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
You are on page 1/ 2

Java Basic Topics

1. Introduction to Java
- History of Java
- Features of Java (Platform Independent, OOPS, Robust, Secure)
- JDK, JRE, JVM differences
2. Basic Syntax
- Structure of a Java Program
- main() method role
- Printing statements (System.out.println)
3. Data Types & Variables
- Primitive Data Types (int, float, double, char, boolean, byte, short, long)
- Non-primitive Data Types (String, Arrays, Classes)
- Variable declaration & initialization
- Type casting (widening, narrowing)
4. Operators
- Arithmetic Operators (+, -, *, /, %)
- Relational Operators (==, !=, >, <, >=, <=)
- Logical Operators (&&, ||, !)
- Assignment Operators (=, +=, -=, etc.)
- Increment/Decrement (++ , --)
- Bitwise Operators (&, |, ^, <<, >>)
5. Input and Output
- Taking input using Scanner class
- Printing output
6. Control Statements
- Conditional Statements (if, if-else, nested if, switch-case)
- Looping Statements (for, while, do-while)
- Jump Statements (break, continue)
7. Arrays
- Single Dimensional Array
- Multi-Dimensional Array (2D array)
- Array methods (length, iteration using loops, enhanced for loop)
8. Strings
- String creation & immutability
- String methods (length(), charAt(), substring(), equals(), toUpperCase(), etc.)
- StringBuffer and StringBuilder
9. Methods
- Method declaration & calling
- Method parameters & return values
- Method overloading
- static methods
10. Object-Oriented Programming (OOPs)
- Classes and Objects
- Constructors (default, parameterized)
- this keyword
- Inheritance
- Polymorphism (compile-time & runtime)
- Abstraction (abstract class, interface)
- Encapsulation (getters & setters, private variables)
11. Exception Handling
- Try, Catch, Finally
- Throw, Throws
- Checked vs Unchecked Exceptions
12. Packages
- Built-in packages (java.util, java.io, etc.)
- Creating user-defined packages
- Importing packages
13. Collections Framework (Basics)
- List, Set, Map overview
- ArrayList, HashSet, HashMap basic usage
14. File Handling (Basics)
- Reading & Writing files using File, FileReader, FileWriter, BufferedReader, etc.
15. Miscellaneous
- static keyword
- final keyword
- Command-line arguments
- Wrapper classes (Integer, Double, etc.)
- Autoboxing & Unboxing

You might also like