Java Interview Flashcards
What is an ENUM class ?
What is the JVM and how does it work ?
The Java Virtual Machine(abstract) is Platform Dependent. It takes BYTECODE and using a Just-In-Time Interpreter, generates MACHINE CODE for the underlying CPU to execute
What is JAVA ?
Platform Independent Language. Object Oriented Programming Language. Portable - WORA
What is JRE ?
Java Runtime Environment. JRE = JVM + compiled Java classes and Libraries in bytecode (.class files)
What is JDK ?
Java Language + Java Compiler + Debugger + JRE
What is OOPs ?
Object Oriented Programming (as opposed to Procedural)
What are the four pillars of OOPS ?
Encapsulation
Abstraction
Inheritance
Polymorphism
What is Encapsulation ?
What is an Object ?
An Object is a representation of a real world entity. It has 3 aspects - state, behaviour and identity
What is a Class ?
A blueprint for an object
What is Data Abstraction
Implementation of Objects is hidden. The external Behaviour only is apparent. e.g. press pedal of Car - it slows down. how that is done is abstracted
H