Exam Questions and CORRECT Answers
object - CORRECT ANSWER - capable of receiving messages, processing information or
data, and sending messages to another/a class created at runtime
Class - CORRECT ANSWER - a blueprint which describes methods, functions, and
constructors
Encapsulation - CORRECT ANSWER - wrapping data in a single unit
Data Abstraction - CORRECT ANSWER - hiding data; Hiding the irrelevant features and
exposing only the needed features of a particular object
Polymorphism - CORRECT ANSWER - the same class name can have many different
functions
Inheritance - CORRECT ANSWER - transferring the properties of one class to another
Platform Independence - CORRECT ANSWER - Java's power comes from the ability to
compile code that can be read on any computer that has the Java Virtual Machine installed.
Object-Oriented - CORRECT ANSWER - Java is object-oriented, thus each program is
built from objects and classes.
Compiler/Interpreter - CORRECT ANSWER - 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.
, Robust - CORRECT ANSWER - 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.
Memory Management - CORRECT ANSWER - Memory management is automatically
handled by Java Virtual Machine, which means the programmer does not need to write code to
manage memory.
Performance - CORRECT ANSWER - Properly written Java programs execute quickly
and use little memory.
Networking - CORRECT ANSWER - Java works on internet and intranet applications
alike.
Javadoc - CORRECT ANSWER - 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
Comment Opener - CORRECT ANSWER - /*** [line for comment] ***/
operators - CORRECT ANSWER - ...
iteration statements - CORRECT ANSWER - Iteration statements repeat a function until a
certain value or condition is satisfied.
For Statement
While Statement
Do-While Statement
data types - CORRECT ANSWER - ...