JAVA Programming questions
fully solved 2025(graded A+)
object - answer capable of receiving messages, processing
information or data, and sending messages to another/a class
created at runtime
Class - answer a blueprint which describes methods, functions, and
constructors
Encapsulation - answer wrapping data in a single unit
Data Abstraction - answer hiding data; Hiding the irrelevant
features and exposing only the needed features of a particular
object
Polymorphism - answer the same class name can have many
different functions
Inheritance - answer transferring the properties of one class to
another
Platform Independence - 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 - answer Java is object-oriented, thus each program
is built from objects and classes.
Compiler/Interpreter - 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 - 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 - answer Memory management is
automatically handled by Java Virtual Machine, which means the
programmer does not need to write code to manage memory.
Performance - answer Properly written Java programs execute
quickly and use little memory.
Networking - answer Java works on internet and intranet
applications alike.
Javadoc - 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 - answer /*** [line for comment] ***/
operators - answer ...
iteration statements - answer Iteration statements repeat a function
until a certain value or condition is satisfied.
For Statement
While Statement
Do-While Statement
fully solved 2025(graded A+)
object - answer capable of receiving messages, processing
information or data, and sending messages to another/a class
created at runtime
Class - answer a blueprint which describes methods, functions, and
constructors
Encapsulation - answer wrapping data in a single unit
Data Abstraction - answer hiding data; Hiding the irrelevant
features and exposing only the needed features of a particular
object
Polymorphism - answer the same class name can have many
different functions
Inheritance - answer transferring the properties of one class to
another
Platform Independence - 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 - answer Java is object-oriented, thus each program
is built from objects and classes.
Compiler/Interpreter - 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 - 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 - answer Memory management is
automatically handled by Java Virtual Machine, which means the
programmer does not need to write code to manage memory.
Performance - answer Properly written Java programs execute
quickly and use little memory.
Networking - answer Java works on internet and intranet
applications alike.
Javadoc - 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 - answer /*** [line for comment] ***/
operators - answer ...
iteration statements - answer Iteration statements repeat a function
until a certain value or condition is satisfied.
For Statement
While Statement
Do-While Statement