What is Java?
A common Object Oriented Programming language.
What are advantages of Java?
What does a Java file compile into?
bytecode
What is the difference between JDK, JRE, JVM?
State vs Behavior
- Behavior are actions an object can take
What is a class?
A class is the blueprint that provides the states and behaviors its instantiated objects will have.
What is an object?
An object is an instantiation of a class.
What are the class members?
What are the types of variables?
What are the variable scopes?
What are the access modifiers and what access do they allow?
What are non-access modifiers and what do they do?
What is a constructor?
A method within a class that tells an instantiated object what its default values and methods will be. Can have parameters passed into it.
What are the types of constructors?
When do you get a default constructor?
If you don’t explicitly create your own constructor for the class.
What are the 4 pillars of OOP?
A PIE - Abstraction, Polymorphism, Inheritance, Encapsulation
What is Abstraction?
Its main goal is to handle complexity by hiding unnecessary details from the user.
What is the difference between an abstract class and an interface?
What is polymorphism?
Objects of different types can be accessed through the same interface, each type can provide its own, independent implementation of this interface
What are the types of polymorphism?
- Runtime(dynamic) using method overriding
What is inheritance?
A new class is derived from an existing class by acquiring the properties and methods of other classes.
How do you inherit?
extend a class
What is encapsulation?
The mechanism of wrapping the data (variables) and code acting on the data (methods) together as a single unit.
What is a POJO?
A plain old java object