This keyword is used to define a class in Java.
What is 'class'?
This is the simplest kind of loop in Java, commonly called a "for loop".
What is 'for (initialization; termination; increment)'?
This principle of OOP restricts direct access to some of an object's components.
What is 'encapsulation'?
This data structure allows elements to be added and removed in a last-in-first-out manner.
What is 'stack'?
This searching algorithm repeatedly halves the search space and requires the list to be sorted.
What is binary search?
Single Line comment
What is //
This keyword is used to exit a loop immediately.
What is 'break'?
This keyword is used to inherit properties and behaviors from another class.
What is 'extends'?
Primitive data type that can hold whole numbers, not fractions
What is 'int'?
This sorting algorithm compares adjacent elements and swaps them if they’re out of order, continuing until the list is sorted.
What is bubble sort?
This is the method signature for the main method in a Java application.
What is 'public static void main(String[] args)'?
This control structure is used to handle multiple cases based on a variable's value.
What is 'switch'?
This feature of OOP allows a method to perform different functionality depending on the object that invokes it.
What is 'polymorphism'?
A sequence of characters, used to store text.
What is a "String"?
This type of algorithm solves a problem by calling itself with a smaller input.
What is a recursive algorithm?
This is used in Java to create a constant variable, its value cannot be changed after assignment.
What is 'final'?
This type of loop continues until its condition evaluates to false.
What is 'while' loop?
This is the relationship defined when one class uses one or more objects from another class as its components.
What is 'composition'?
Primative Data Types
What is byte, short, long, int, float, double, boolean, and char?
This type of algorithm optimizes problems by making the locally optimal choice at each stage.
What is 'greedy algorithm'?
This is the syntax for instantiating a new object in Java.
What is 'new ClassName()'?
This loop is guaranteed to execute at least once before checking its loop condition.
What is 'do-while' loop?
This OOP principle is violated when a child class must call a method to function correctly that isn't part of its declared interface.
What is 'Liskov substitution principle'?
Defines a contract for classes to implement, specifying a set of methods.
What is Interfaces?
his strategy breaks a problem into smaller subproblems, solves them independently, and then combines the results.
What is divide and conquer?