What are loops?
Loop is a control flow statement that allows code to be executed repeatedly based on a given Boolean condition.
Variables are containers used to store data values.
What is a class in java?
A class is a blueprint for creating objects, providing initial values for state and implementations of behavior.
Definition of a function.
A function in java is often implemented as a method, a reuseable block of code that performs a specific task.
What is OOP?
It stands for object oriented programming. In this type of programming language, programmers can build classes and create objects to iteratively call the instructions.
For loop definition.
The for loop is used to execute a block of code repeatedly for a specified number of times. It consists of three parts: initialization, condition, and update.
What does a string variable defines?
A string variable is a type of variable that stores text-based data.
What is an object?
An object is an instance of a class.
Class constructor definition.
It is a special method used to initialize objects when created. It has no return type and shares the same name of the class.
What is inheritance.
It is an OOP feature that allows one class (child class) to acquire the properties and behaviors of another class (parent class).
While loop definition.
A while loop repeatedly executes a block of code as long as a specified condition is true. It is useful when the number of iterations is not known beforehand.
What is boolean?
It is a data type with two possible outcomes: true or false.
Public VS Private
Public class can be accessed from anywhere in the application, across all packages. Where private class can only be accessed within the enclosed class.
What are parameters in a method?
Parameters are variables defined in a method declaration that allow methods to accept input values.
What is encapsulation?
It is an OOP principle about hiding data and controlling access to it, usually use private and public methods. It helps with data security.
What is the essential logic in loops?
Boolean.
Int stores whole number data, where double stores floating-point numbers .
What are instance variables in a class?
An instance variable in Java is a variable that belongs to an object of a class rather than the class itself. It is declared inside a class but outside any method, constructor, or block.
What is polymorphism?
It refers to the ability to perform a certain action in two different ways; it can take two forms: method overloading and method overriding.
What is abstraction?
This aims to hide complexity from users and only show the relevant information (name and parameter list).