Benefits of Java Flashcards

1
Q

Define Object Oriented programming !

A

Java is an object-oriented language, which means all code is defined in
classes and most of those classes can be instantiated into objects.

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

Define encapsulation !

A

Java supports access modifiers to protect data from unintended access and modification.

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

Define an interpreted language !

A

AN INTERPRETED LANGUAGE IS A HIGH LEVEL LANGUAGE WHOSE INSTRUCTIONS
AFTER BEING COMPILED INTO BYTECODE BY A COMPILER, ARE CONVERTED
INTO MACHINE CODE IN RUNTIME BY AN INTERPRETER

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

How does Java prevent automatically memory leaks ?

A

Java manages memory on its own and does garbage collection automatically

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

Why is the JVM often associated with sandboxing?

A

The JVM provides a controlled environment for executing Java applications, isolating them from the underlying operating system. This helps prevent potentially harmful code from affecting the host system.

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