Self-study questions for Sun Certified Java Programmer (SCJP) (310-055). God speed!
Flip a Clidlet
Flip a Clidde
Flip a Clidder Flip a Clidlet
# Flip a Clidlet Flip a Clidder
Compilation fails.
Rate this question:
BD
DB
BDC
DBC
Compilation fails.
Rate this question:
Int $x;
Int 123;
Int _123;
Int #dim;
Int central_sales_region_Summer_2005_gross_sales;
Rate this question:
AddSize
GetCust
DeleteRep
IsColorado
PutDimensions
Rate this question:
Static void doStuff(int... doArgs) { }
Static void doStuff (int [] doArgs) { }
Static void doStuff(int doArgs...) { }
Static void doStuff(int... doArgs, int y) { }
Static void doStuff(int x, int... doArgs) { }
Rate this question:
Has-a relationships always rely on inheritance.
Has-a relationships always rely on instance variables.
Has-a relationships always require at least two class types
Has-a relationships always rely on polymorphism.
Has-a relationships are always tightly coupled.
Rate this question:
Public abstract class Canine { public Bark speak(); }
Public abstract class Canine { public Bark speak() { } }
Public class Canine { public abstract Bark speak(); }
Public class Canine abstract { public abstract Bark speak(); }
Rate this question:
Clidlet
Clidder
Clidder Clidlet
Clidlet Clidder
Compilation fails.
Rate this question:
The attributes of the class are all private.
The class refers to a small number of other objects.
The object contains only a small number of variables.
The reference variable is declared for an interface type, not a class. The interface provides a small number of methods.
It is unlikely that changes made to one class will require any changes in another.
Rate this question:
Interface Base2 implements Base { }
Abstract class Class2 extends Base { public boolean ml() { return true; } }
Abstract class Class2 implements Base { }
# abstract class Class2. implements Base { public boolean m1() { return (true); } }
Class Class2 implements Base { boolean m1( ) { return false; } byte m2(short s) { return 42; } }
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:
Quiz Review Timeline (Updated): May 8, 2024 +
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.