MCA
JAVA BASICS // ENTERPRISE CODE // ABSTRACT FACTORY // JAVA BASICS // ENTERPRISE CODE // ABSTRACT FACTORY //
BACK TO SYLLABUS
EASY

JAVA BASICS

Variables, data types, operators, and control flow

CONCEPTS

01Primitive data types (int, double, boolean, char)
02Control flow (if/else, switch)
03Loops (for, while, do-while)
04Methods and parameters
05Arrays (single and multidimensional)
06String manipulation

SYNTAX_DEMO

Core Java syntax
public class Main {
    public static void main(String[] args) {
        String name = "Alice";
        int age = 25;
        
        if (age >= 18) {
            System.out.println(name + " is an adult.");
        } else {
            System.out.println(name + " is a minor.");
        }

        for (int i = 0; i < 5; i++) {
            System.out.println("Count: " + i);
        }
    }
}