Java Interview Flashcards

1
Q

What is an ENUM class ?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the JVM and how does it work ?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is JAVA ?

A

Platform Independent Language. Object Oriented Programming Language. Portable - WORA

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is JRE ?

A

Java Runtime Environment. JRE = JVM + compiled Java classes and Libraries in bytecode (.class files)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is JDK ?

A

Java Language + Java Compiler + Debugger + JRE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is OOPs ?

A

Object Oriented Programming (as opposed to Procedural)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the four pillars of OOPS ?

A

Encapsulation
Abstraction
Inheritance
Polymorphism

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is Encapsulation ?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is an Object ?

A

An Object is a representation of a real world entity. It has 3 aspects - state, behaviour and identity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a Class ?

A

A blueprint for an object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is Data Abstraction

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

H

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly