Page | 1
JAVA Programming Questions and Answers
(Expert Solutions)
Q: object ANS 🗹🗹: capable of receiving messages, processing information or data, and
sending messages to another/a class created at runtime
Q: Class ANS 🗹🗹: a blueprint which describes methods, functions, and constructors
Q: Encapsulation ANS 🗹🗹: wrapping data in a single unit
Q: Data Abstraction ANS 🗹🗹: hiding data; Hiding the irrelevant features and exposing
only the needed features of a particular object
Q: Polymorphism ANS 🗹🗹: the same class name can have many different functions
Q: Inheritance ANS 🗹🗹: transferring the properties of one class to another
Q: Platform Independence ANS 🗹🗹: Java's power comes from the ability to compile
code that can be read on any computer that has the Java Virtual Machine installed.
Q: Object-Oriented ANS 🗹🗹: Java is object-oriented, thus each program is built from
objects and classes.
Q: Compiler/Interpreter ANS 🗹🗹: The Java compiler translates the original code into
bytecode so that any computer with JVM installed can run the compiled code, regardless
of platform or operating system.
, Page | 2
Q: Robust ANS 🗹🗹: Before executing a program, JVM conducts an overall checking of
the program and gives reports of any malfunction.Thus, JVM is a robust programming
language.
Q: Memory Management ANS 🗹🗹: Memory management is automatically handled by
Java Virtual Machine, which means the programmer does not need to write code to
manage memory.
Q: Performance ANS 🗹🗹: Properly written Java programs execute quickly and use little
memory.
Q: Networking ANS 🗹🗹: Java works on internet and intranet applications alike.
Q: Javadoc ANS 🗹🗹: To avoid mistakes and problems later as the program becomes
longer and complex, you need to include comment statements in your program to
identify the program or section of code's purpose/this documentation of comments
Q: Comment Opener ANS 🗹🗹: /*** [line for comment] ***/
Q: operators ANS 🗹🗹: ...
Q: iteration statements ANS 🗹🗹: Iteration statements repeat a function until a certain
value or condition is satisfied.
For Statement
While Statement
Do-While Statement
Q: data types ANS 🗹🗹: ...
Q: variables ANS 🗹🗹: A placeholder—it's the value of which can be modified according
to the needs of the program or the results of a calculation.
JAVA Programming Questions and Answers
(Expert Solutions)
Q: object ANS 🗹🗹: capable of receiving messages, processing information or data, and
sending messages to another/a class created at runtime
Q: Class ANS 🗹🗹: a blueprint which describes methods, functions, and constructors
Q: Encapsulation ANS 🗹🗹: wrapping data in a single unit
Q: Data Abstraction ANS 🗹🗹: hiding data; Hiding the irrelevant features and exposing
only the needed features of a particular object
Q: Polymorphism ANS 🗹🗹: the same class name can have many different functions
Q: Inheritance ANS 🗹🗹: transferring the properties of one class to another
Q: Platform Independence ANS 🗹🗹: Java's power comes from the ability to compile
code that can be read on any computer that has the Java Virtual Machine installed.
Q: Object-Oriented ANS 🗹🗹: Java is object-oriented, thus each program is built from
objects and classes.
Q: Compiler/Interpreter ANS 🗹🗹: The Java compiler translates the original code into
bytecode so that any computer with JVM installed can run the compiled code, regardless
of platform or operating system.
, Page | 2
Q: Robust ANS 🗹🗹: Before executing a program, JVM conducts an overall checking of
the program and gives reports of any malfunction.Thus, JVM is a robust programming
language.
Q: Memory Management ANS 🗹🗹: Memory management is automatically handled by
Java Virtual Machine, which means the programmer does not need to write code to
manage memory.
Q: Performance ANS 🗹🗹: Properly written Java programs execute quickly and use little
memory.
Q: Networking ANS 🗹🗹: Java works on internet and intranet applications alike.
Q: Javadoc ANS 🗹🗹: To avoid mistakes and problems later as the program becomes
longer and complex, you need to include comment statements in your program to
identify the program or section of code's purpose/this documentation of comments
Q: Comment Opener ANS 🗹🗹: /*** [line for comment] ***/
Q: operators ANS 🗹🗹: ...
Q: iteration statements ANS 🗹🗹: Iteration statements repeat a function until a certain
value or condition is satisfied.
For Statement
While Statement
Do-While Statement
Q: data types ANS 🗹🗹: ...
Q: variables ANS 🗹🗹: A placeholder—it's the value of which can be modified according
to the needs of the program or the results of a calculation.