Java Exam Oct. #1 assesses advanced Java concepts including encapsulation, collection classes, multithreading, and class design. It is designed to test practical implementation skills and theoretical knowledge, vital for proficient Java programming.
Java.util.HashSet
Java.util.LinkedHashSet
Java.util.List
Java.util.ArrayList
Java.util.Vector
Java.util.PriorityQueue
Rate this question:
The size of s is 4
The size of s is 5
The size of s is 7
The size of subs is 3
An exception is thrown at runtime
Rate this question:
Public abstract class Frob implements Frobnicate { public abstract void twiddle(String s) { } }
Public abstract class Frob implements Frobnicate { }
Public class Frob extends Frobnicate { public void twiddle(Integer i) { } }
Public class Frob implements Frobnicate { public void twiddle(Integer i) { } }
Public class Frob implements Frobnicate { public void twiddle(String i) { } public void twiddle(Integer s) { } }
Rate this question:
Public class MyRunnable extends Runnable{public void run(){}}
Public class MyRunnable extends Object{public void run(){}}
Public class MyRunnable implements Runnable{public void run(){}}
Public class MyRunnable implements Runnable{void run(){}}
Public class MyRunnable implements Runnable{public void start(){}}
Rate this question:
The notifyAll() method must be called from a synchronized context
To call wait(), an object must own the lock on the thread
The notify() method is defined in class java.lang.Thread
When a thread is waiting as a result of wait(), it releases its lock
The notify() method causes a thread to immediately release its lock
Rate this question:
AddSize
GetCust
DeleteRep
IsColorado
PutDimensions
Rate this question:
13
Compilation fails due to multiple errors
Compilation fails due to an error on line 6
Compilation fails due to an error on line 7
Compilation fails due to an error on line 11 Answer:
1 2
1 2 3 45 6
1 2 3 4 5 6
1 2 a 3 45 6
Compilation fails
1 2 followed by an exception
Rate this question:
Car
Ford
Dodge
Wheels
Vehicle
Rate this question:
Quiz Review Timeline (Updated): Mar 22, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.