Term
|
Definition
Encapsulate primitive data types |
|
|
Term
Is Java platform independent? explain |
|
Definition
Yes it can run anywhere-->JVM Build once, run anywhere/any OS |
|
|
Term
|
Definition
JDK- developing programs JRE- running programs |
|
|
Term
|
Definition
it allocates memory/does garbage collection |
|
|
Term
|
Definition
all classes come from Object Class, at the top of the class hierarchy |
|
|
Term
|
Definition
A template for creating an object It defines the object's state and behavior |
|
|
Term
Define: Interface (and example) |
|
Definition
An interface defines the responsibilities of a class/common actions b/w classes. One interface can extend (add to) another
Example: Flyable interface for both birds and planes |
|
|
Term
How many interfaces can a class implement? |
|
Definition
A class can implement more than 1 interface at a time, but not extend multiple classes |
|
|
Term
|
Definition
An abstract class must be inherited/fleshed out by another class and cannot be used on its own |
|
|
Term
|
Definition
|
|
Term
|
Definition
A class's methods should be highly related Related to SRP |
|
|