-
-
Which of the following is not a wrapper class?
A) StringB) IntegerC) BooleanD) Character
-
Which of the following are true about the Error and Exception classes?
A) Both classes extend Throwable.B) The Error class is final and the Exception class is not.C) The Exception class is final and the Error is not.D) Both classes implement Throwable.
-
Which of the following features are common to both Java & C++? (Select multiple)
A) The class declarationB) The access modifiersC) The encapsulation of data & methods with in objectsD) The use of pointers
-
Which of the following statements correctly describes an interface?
A) It's a concrete classB) It's a superclassC) It's a type of abstract class
-
When you read your e-mail, you are viewing _________ data
A) ActiveB) PassiveC) BothD) None of the above
-
-
_____________ is the process by which one object acquires the properties of another object
A) EncapsulationB) ClassC) InheritenceD) Polymorphism
-
You would use the ____ operator to create a single instance of a named class.
A) newB) dotC) equalsD) none of the above
-
-
Which of the following can you perform using the File class? (Select multiple)
A) Change the current directoryB) Return the name of the parent directoryC) Delete a fileD) Find if a file contains text or binary information
-
The this reference is used in conjunction with ___methods.
A) staticB) non-staticC) privateD) protected.
-
What is the data type for the parameter of the sleep() method?
A) doubleB) intC) longD) float
-
-
-
-
An interface contains _________ methods
Skill/Topic: InheritanceA) AbstractB) Non-abstract C) Implemented D) Un-implemented
-
Which of the following methods cause the String object referenced by s to be changed? (Select multiple)
A) s.concat( )B) s.toUpperCase( )C) s.replace( )D) s.valueOf( )
-
What is the difference between a Choice and a List
A Choice is displayed in a compact form that requires you to pull it down to see the listof availablechoices. Only one item may be selected from a Choice. A List may be displayed in such away that severalList items are visible. A List supports the selection of one or more List items.
-
Java Interview Questions
Ans