Class : Public : Static
Class : Public : Static
*
- *int*: Stores integers (e.g., 5, -10). - A block of code within a class that performs a
specific task and can be called using an object.
- *double*: Stores floating-point numbers (e.g., 5.5,
-2.3).
- *char*: Stores a single character (e.g., 'a', 'Z'). 10. *Method Parameters*
- Variables passed to a method to provide input data
for that method to use.
2. *3 Keywords*
- *class*: Defines a class.
11. *What is an Array?*
- *public*: Sets access level for classes, methods,
or fields. - A collection of elements of the same data type,
stored in contiguous memory locations.
- *static*: Indicates a method or variable belongs to
the class, not instances.
12. *Switch Case*
3. *What is a Comment?* - A control statement used to execute different code
blocks based on the value of a variable.
- Text in code ignored by the compiler, used to
explain code. Written as // for single line and /* ... */
for multi-line.
13. *Conditions*
- Statements that control the flow of a program
4. *What is a Class?* based on true/false evaluations (e.g., if, else).
- A blueprint for creating objects, defining attributes
and behaviors (methods) of those objects.
Final Keyword: -
The final keyword is used to indicate that a variable,
5. *What is an Object?* method, or class cannot be changed or overridden. It
locks down that part of the code.
- An instance of a class containing properties and
behaviors defined by the class.
Variable type
6. *What is JDK?* • Local
- Java Development Kit; includes tools and libraries • Instance
for developing and running Java programs. • Static