CCIT 03: .2

Cards (14)

  • Basic syntax of Java
    • Comments (single-line, multi-line, documentation)
    • Source File Name
    • Case Sensitivity
    • Class Names
    • public static void main(String[] args)
    • Instance Variables
    • Methods
    • Access Modifiers
    • Non-access Modifiers
    • Keywords
    • Statements
    • Operators
    • Control Structures
    • Exception Handling
    • Packages
    • Imports
    • Inheritance
  • How to Create Your First Java Program with IDE
    1. Install Java Development Kit (JDK)
    2. Set Up Your Development Environment
    3. Write Your First Java Program
    4. Compile Your Program
    5. Run Your Program
    6. Understand the Output
  • Data Types in Java

    • Primitive types (byte, short, int, long, float, double, boolean, char)
    • Reference types (classes, interfaces, arrays)
    • Special types (void, String, Object)
    • Enum types
  • Operators in Java
    • Arithmetic operators (+, -, *, /, %, ^)
    • Logical operators (&, |, !, ==)
  • Precedence
    The order of evaluation of operators in Java
  • Expressions
    A combination of values, variables, and operators used to perform calculations or assign values to variables
  • Types of Variables in Java

    • Global Variable
    • Local Variable
    • Static Variable
  • Variable Declaration
    dataType variableName;
  • Variable Initialization
    variableName = value;
  • Variable Scope
    • Local variables
    • Instance variables
    • Static variables
  • Final Variables
    Variables that cannot be reassigned, declared using the final keyword
  • Implicit Conversion (Widening Conversion)

    Automatic conversion of a data type of lower precision to a data type of higher precision
  • Explicit Conversion (Narrowing Conversion)

    Conversion of a data type of higher precision to a data type of lower precision, requires explicit casting by the programmer
  • Syntax for explicit casting: (required-type)value