Benefits of Java Flashcards
Define Object Oriented programming !
Java is an object-oriented language, which means all code is defined in
classes and most of those classes can be instantiated into objects.
Define encapsulation !
Java supports access modifiers to protect data from unintended access and modification.
Define an interpreted language !
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 does Java prevent automatically memory leaks ?
Java manages memory on its own and does garbage collection automatically
Why is the JVM often associated with sandboxing?
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.