Java_Notes_Class10
Java_Notes_Class10
- OOP is a programming style based on real-world concepts like objects and classes.
Example:
class Car {
int speed;
void drive() {
Example:
- Arithmetic: +, -, *, /, %
- Unary: ++, --
import java.util.Scanner;
Example:
System.out.println("Eligible to vote.");
} else {
System.out.println("Not eligible.");
}
Example:
System.out.println(i);