Loading Test...

Test: Java Certification Exam

Category: Software

Description: This is a certification exam for the Java programming language

What is recursion?

It is when a function is defined in terms of itself It is when a function is called until a StackOverflowException occurs It means that a function is able to restart after an exception It is a test condition (JUnit) implying that a method's output has passed

If you need to store a "map" of objects in a multi-threaded environment you should use java.util.HashMap.

True False

How do you determine the number of characters in a String

Use the size() method Call the length() method Call toByteArray().length It is not possible

Java "garbage collection" is performed only when the System.gc() method is called.

True False

What is a package?

A collection of class files in a jar file A namespace that organizes a set of related classes and interfaces A pre-compiled web application archive (war file) A group of related abstract classes

Which of the following is the most restrictive access modifier:

public private protected final

Which of the following statements is true about the reflection API?

There is a sizable performance overhead for using it Only native methods may be used with reflection It will cir***vent any security policy at runtime so it must be used carefully It cannot be used to alter member variable access visibility

The term API stands for:

Abstract Program Improvement Absolute Program Initiative Average Precompilation Interval Application Programming Interface

For performance reasons it is best to synchronize access to all instance variables.

True False

A collection of methods with no implementation is called:

an interface native linking a subclass data encapsulation

In order to override a final method, you must declare the method as abstract in the base class.

True False

Which of the following is a legal method declaration?

public static void doStuff(void input) public protected int doStuff(int input) private synchronized doStuff() public String doStuff(String input)

The keyword synchronized is:

used to prevent more than one thread from accessing a block of code at a time. used to control thread priority deprecated due to the introduction of ThreadLocal variables only available in Java 5 and higher

A constructor is used for:

Incremental garbage collection Lazy loading of runtime resources Importing classes and to declare thread-local variables Initialization of a newly created object

The transient keyword is used when a variable should not be written out when a class is serialized.

True False

When a JSP is compiled it becomes a:

JSPC Stub class Servlet WAR or EAR deployment

Java Servlets are exclusively used for:

Interfacing with enterprise systems like PHP Generating heavy-weight graphics objects on the server Providing client applications with dynamic content Initializing applets and returning their graphics context

What is the purpose of import statements?

To declare global variables To define 'friendly' classes To assist the compiler in making optimizations To allow the code to refer to classes without a formal prefix

Java is considered to be a platform-independent language because:

it is compiled into machine specific byte-codes a compiler has been written for it on all platforms it is object-oriented, like C++ it is an interpreted language which is run in a virtual machine

The difference between a method in a JavaBean and other methods is:

There is no difference, they are still just methods Methods in a JavaBean must be declared final Other methods must always be declared private JavaBeans methods take up less space

Comments

Anyone preparing for a Java certification must practice mock exams. Java Certification Examgot 500+ practice questions with exam simulator.
The Applet Class Quizs Quiz Regarding Threading In Java Java Quiz True Or False Questions It Is A Test Condition (JUnit) Implying That A Method S Output Has Passed Which Of The Following Is A Legal Method Declaration Public Protected Int Dostuff(int Input) Quiz In Java Java Certification Quiz True Or False Exam On Java Quiz Java Collections Java Question True False Java Recursion Quiz Examintion Questions On Recursion In Java Quiz Regarding Strings In Java Javacertificationexam Quizzes On Dates String Java True Or False Questions Java Java Multithreading Quiz Java Tests And Quizs Multithreading Quiz Java Java Recursive Synchronize Recursion In Java Quiz Exam Question For Reflection In Java Java Collection Quiz Java True Or False Questions Java Certification Questions(string) Multithreading Quiz Java Certification Java Questions True False Quiz Java Multithreaded Java Program Pop Quiz True Or False Recussion Java Test Quiz On Recursion In Java True Or False Questions On Recursion Absolute Java Tests Exam Questions Regarding Java

The

Applet Class Quizs Quiz

Regarding

Threading In Java True

Or

False Questions It Is

A

Test Condition (JUnit) Implying

That

Method S Output Has

Passed

Which Of Following Legal

Declaration

Public Protected Int Dostuff(int

Input)

Certification Exam On Collections

Question

Recursion Examintion Strings Javacertificationexam

Quizzes

Dates String Multithreading Tests

And

Recursive Synchronize For Reflection

Collection

Questions(string) Multithreaded Program Pop

Recussion

Absolute