Encapsulation can be done by ____.
Private and Public
What is an object?
It is an Instance of Class
Print statement in Java
System.out.println("Hello World!!!");
Define declaration of variable in Java
type var_name;
What is a Variable?
Variable is a named memory location.
List the primitive data types
Integer,
Float,
Character,
String,
Boolean.
List the basic principles of Object-Oriented Programming.
Encapsulation,
Polymorphism, and
Inheritance.
List the different type of Literals.
Integer literal, Floating-point Literal, Character Literal, Boolean Literal, String Literal
Which keyword is used to define class?
"class" is a keyword to define class object.
How to allocate memory dynamically?
'new' keyword is used for dynamic memory allocation.
what is Super class?
A superclass is a class that allow other classes to inherit its property