Exam 9: A Second Look at Classes and Objects
Exam 1: Introduction to Computers and Java42 Questions
Exam 2: Java Fundamentals53 Questions
Exam 3: Decision Structures52 Questions
Exam 4: Loops and Files48 Questions
Exam 5: Methods50 Questions
Exam 6: A First Look at Classes49 Questions
Exam 7: A First Look at Gui Applications49 Questions
Exam 8: Arrays and the Arraylist Class52 Questions
Exam 9: A Second Look at Classes and Objects40 Questions
Exam 10: Text Processing and More About Wrapper Classes49 Questions
Exam 11: Inheritance49 Questions
Exam 12: Exceptions and Advanced File Io46 Questions
Exam 13: Advanced Gui Applications46 Questions
Exam 14: Applets and More39 Questions
Exam 15: Recursion34 Questions
Exam 16: Sorting, Searching, and Algorithm Analysis46 Questions
Exam 17: Generics50 Questions
Exam 18: Collections50 Questions
Exam 19: Array-Based Lists20 Questions
Exam 20: Linked Lists36 Questions
Exam 21: Stacks and Queues36 Questions
Exam 22: Binary Trees, Avl Trees, and Priority Queues45 Questions
Select questions type
When the this variable is used to call a constructor,
Free
(Multiple Choice)
4.9/5
(45)
Correct Answer:
A
The key word this is the name of a reference variable that an object can use to refer to itself.
Free
(True/False)
4.8/5
(42)
Correct Answer:
True
The only limitation that static methods have is
Free
(Multiple Choice)
4.8/5
(46)
Correct Answer:
D
Look at the following declaration. enum Tree { OAK,MAPLE,PINE }
What is the fully-qualified name of the PINE enum constant?
(Multiple Choice)
4.7/5
(28)
When an object is passed as an argument,it is actually a reference to the object that is passed.
(True/False)
4.8/5
(37)
When an object reference is passed to a method,the method may change the values in the object.
(True/False)
4.8/5
(31)
If you have defined a class SavingsAccount with a public static method getNumberOfAccounts(),and created a SavingsAccount object referenced by the variable account20,which of the following will call the getNumberOfAccounts()method?
(Multiple Choice)
4.8/5
(35)
If object1 and object2 are objects of the same class,to make object2 a copy of object1
(Multiple Choice)
4.9/5
(39)
If you write a toString method for a class,Java will automatically call the method any time you concatenate an object of the class with a string.
(True/False)
4.9/5
(32)
What will be returned from a method,if the following is the method header: public Rectangle getRectangle()
(Multiple Choice)
4.8/5
(47)
The this key word is the name of a reference variable that is available to all static methods.
(True/False)
4.7/5
(44)
You cannot use the fully-qualifed name of an enum constant for this.
(Multiple Choice)
4.8/5
(32)
A declaration for an enumerated type begins with this key word.
(Multiple Choice)
5.0/5
(42)
The names of the enum constants in an enumerated data type must be enclosed in quotation marks.
(True/False)
4.9/5
(40)
If you have defined a class named SavingsAccount with a public static data member named numberOfAccounts,and created a SavingsAccount object referenced by the variable account20,which of the following will assign numberOfAccounts to numAccounts?
(Multiple Choice)
4.9/5
(40)
The whole-part relationship created by object aggregation is more often called
(Multiple Choice)
4.8/5
(40)
Showing 1 - 20 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)