ABSOLUTE JAVA CERTIFICATION
EVALUATION EXAMS SET FULL QUESTIONS
AND COMPLETE SOLUTION
●● Synchronization
Answer: Restricts access to a resource to one thread
●● Singleton
Answer: A design pattern where there is only one instance of the class
the entire time. They can be lazily loaded or eagerly loaded. Lazily
loaded are not thread-safe, but eagerly loaded singleton are thread-safe.
The Singleton design pattern is implemented by creating a class with an
accessible method that creates a new instance of the object IF one does
not already exist. If an instance already exists, it simply returns a
reference to that object. The constructor for a Singleton is private.
●● Factory
Answer: Simplifies and abstracts away the instantiation of objects
●● What does POM stand for in software development?
Answer: Project Object Model
●● What is the primary format used to store a Project Object Model?
,Answer: XML file
●● What type of information is defined in a Project Object Model?
Answer: Project dependencies, build configurations, versioning,
developers, and other relevant project attributes
●● What is the most common tool associated with Project Object
Model?
Answer: Apache Maven
●● What is the name of the POM file in Apache Maven?
Answer: pom.xml
●● What is the purpose of a Project Object Model?
Answer: To allow for automated build and management processes
●● Threads
Answer: A single path of execution. In Java, multi-threading is possible,
and achieved in a concurrent way where threads take turns executing
sections of their code
●● What is the purpose of the 'final' keyword in Java?
, Answer: 'Final' is a keyword that can be used in the declaration of a
class, method, or variable. For variables, the value becomes constant,
preventing it from being changed. A final method cannot be overridden
by a subclass, and a final class cannot be extended.
●● What does the 'finalize' method do in Java?
Answer: 'Finalize' is the last method called by an object when the
garbage collector is about to remove that object from memory.
●● What is the function of the 'finally' keyword in Java?
Answer: 'Finally' is a keyword used in a block of code that executes after
a try/catch statement, running regardless of whether or not an exception
is caught. It may also be used instead of a catch statement in a try/finally
statement.
●● What is Java?
Answer: Java is an Object-Oriented Language in which everything,
excluding primitive types, are treated as objects with fields and methods.
It is compiled and interpreted meaning it is compiled down to byte code
then interpreted by the JVM into machine code. Because of this, it has
the property of Write Once - Run Anywhere. Once written, it can be run
on any machine with java installed.
●● Why do we use Java? What are its benefits?
Answer: One reason we use java is that it's type safe, well-organized,
and relatively simple to use. As a high-level language, low-level
EVALUATION EXAMS SET FULL QUESTIONS
AND COMPLETE SOLUTION
●● Synchronization
Answer: Restricts access to a resource to one thread
●● Singleton
Answer: A design pattern where there is only one instance of the class
the entire time. They can be lazily loaded or eagerly loaded. Lazily
loaded are not thread-safe, but eagerly loaded singleton are thread-safe.
The Singleton design pattern is implemented by creating a class with an
accessible method that creates a new instance of the object IF one does
not already exist. If an instance already exists, it simply returns a
reference to that object. The constructor for a Singleton is private.
●● Factory
Answer: Simplifies and abstracts away the instantiation of objects
●● What does POM stand for in software development?
Answer: Project Object Model
●● What is the primary format used to store a Project Object Model?
,Answer: XML file
●● What type of information is defined in a Project Object Model?
Answer: Project dependencies, build configurations, versioning,
developers, and other relevant project attributes
●● What is the most common tool associated with Project Object
Model?
Answer: Apache Maven
●● What is the name of the POM file in Apache Maven?
Answer: pom.xml
●● What is the purpose of a Project Object Model?
Answer: To allow for automated build and management processes
●● Threads
Answer: A single path of execution. In Java, multi-threading is possible,
and achieved in a concurrent way where threads take turns executing
sections of their code
●● What is the purpose of the 'final' keyword in Java?
, Answer: 'Final' is a keyword that can be used in the declaration of a
class, method, or variable. For variables, the value becomes constant,
preventing it from being changed. A final method cannot be overridden
by a subclass, and a final class cannot be extended.
●● What does the 'finalize' method do in Java?
Answer: 'Finalize' is the last method called by an object when the
garbage collector is about to remove that object from memory.
●● What is the function of the 'finally' keyword in Java?
Answer: 'Finally' is a keyword used in a block of code that executes after
a try/catch statement, running regardless of whether or not an exception
is caught. It may also be used instead of a catch statement in a try/finally
statement.
●● What is Java?
Answer: Java is an Object-Oriented Language in which everything,
excluding primitive types, are treated as objects with fields and methods.
It is compiled and interpreted meaning it is compiled down to byte code
then interpreted by the JVM into machine code. Because of this, it has
the property of Write Once - Run Anywhere. Once written, it can be run
on any machine with java installed.
●● Why do we use Java? What are its benefits?
Answer: One reason we use java is that it's type safe, well-organized,
and relatively simple to use. As a high-level language, low-level