JAVA TEST QUESTIONS AND
CORRECT ANSWERS
object - ANSWER that receives messages, and processes information or data
and also sends messages to another/ a class instantiated at runtime
Class - ANSWER blueprint that defines methods, functions, and constructors
Encapsulation - ANSWER data packed in a single unit
Data Abstraction - ANSWER hidden data; Hiding the irrelevant features and
showing only the needed features of a particular object
Polymorphism - ANSWER the ability of the same name to have multiple
different functions
Inheritance - ANSWER passing the properties of one class to another
Platform Independence - ANSWER The power of Java derives from the
language's ability to compile code into which can be read on any computer that
has the JVM installed.
Object-Oriented - ANSWER Java is object-oriented, with every program in it
being built around objects and classes.
, Compiler/Interpreter - ANSWER A Java compiler first compiles the source
into bytecode. Then, any computer that has JVM installed can run the compiled
code without taking into consideration either the platform or operating system.
Robust- ANSWER Before execution of program, JVM does an overall
checking of the program and reports of any malfunction are given. So, JVM is a
robust programming language.
Memory Management- ANSWER Memory management is automatically done
by Java Virtual Machine, which means that the programmer doesn't need to
write code for memory management.
Performance - ANSWER Well-written Java programs execute quickly and use
little memory.
Networking - ANSWER Java operates on both Internet and intranet-based
programs.
Javadoc - ANSWER To avoid errors and issues later as the program gets
lengthy and complicated, you must incorporate comment statements within your
program that define the purpose of the program or section of code/this
documentation of comments
Comment Opener - ANSWER /*** [line for comment] ***/
operators - ANSWER .
iteration statements - ANSWER Iteration statements repeat a function until a
certain value or condition is satisfied.
CORRECT ANSWERS
object - ANSWER that receives messages, and processes information or data
and also sends messages to another/ a class instantiated at runtime
Class - ANSWER blueprint that defines methods, functions, and constructors
Encapsulation - ANSWER data packed in a single unit
Data Abstraction - ANSWER hidden data; Hiding the irrelevant features and
showing only the needed features of a particular object
Polymorphism - ANSWER the ability of the same name to have multiple
different functions
Inheritance - ANSWER passing the properties of one class to another
Platform Independence - ANSWER The power of Java derives from the
language's ability to compile code into which can be read on any computer that
has the JVM installed.
Object-Oriented - ANSWER Java is object-oriented, with every program in it
being built around objects and classes.
, Compiler/Interpreter - ANSWER A Java compiler first compiles the source
into bytecode. Then, any computer that has JVM installed can run the compiled
code without taking into consideration either the platform or operating system.
Robust- ANSWER Before execution of program, JVM does an overall
checking of the program and reports of any malfunction are given. So, JVM is a
robust programming language.
Memory Management- ANSWER Memory management is automatically done
by Java Virtual Machine, which means that the programmer doesn't need to
write code for memory management.
Performance - ANSWER Well-written Java programs execute quickly and use
little memory.
Networking - ANSWER Java operates on both Internet and intranet-based
programs.
Javadoc - ANSWER To avoid errors and issues later as the program gets
lengthy and complicated, you must incorporate comment statements within your
program that define the purpose of the program or section of code/this
documentation of comments
Comment Opener - ANSWER /*** [line for comment] ***/
operators - ANSWER .
iteration statements - ANSWER Iteration statements repeat a function until a
certain value or condition is satisfied.