- Java uses classes and objects to organize code and data. A class defines the blueprint for an object and can contain attributes and methods.
- To create a class, use the "class" keyword followed by the class name. Objects are instances of classes and are created using the "new" keyword.
- The basic structure of a Java program includes creating a class, writing a main method with the public static void signature, and using print statements to output text. Command line arguments can be passed into the main method.
- Inheritance allows classes to inherit and extend the functionality of other classes. Subclasses inherit attributes and behaviors from their parent superclass. This supports code reuse and method overriding for polymorphism.