Java
ClassD has low cohesion
ClassA has weak encapsulation
ClassB has weak encapsulation
ClassB has strong encapsulation
ClassC is tightly coupled to ClassA
Java.util.HashSet
Java.util.LinkedHashSet
Java.util.List
Java.util.ArrayList
Java.util.Vector
Java.util.PriorityQueue
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
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) { } }
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(){}}
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
AddSize
GetCust
DeleteRep
IsColorado
PutDimensions
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
Car
Ford
Dodge
Wheels
Vehicle
Wait!
Here's an interesting quiz for you.