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
If a class has a method named finalize,it is called automatically just before an instance of the class is destroyed by the garbage collector.
(True/False)
5.0/5
(43)
If a class has a method named finalize,it is called automatically just before a data member that has been identified as final of the class is destroyed by the garbage collector.
(True/False)
4.9/5
(38)
When a method's return type is a class,what is actually returned to the calling program?
(Multiple Choice)
4.8/5
(37)
Assume the class BankAccount has been created,and the following statement correctly creates an instance of the class: BankAccount account = new BankAccount(5000.0);
What is true about the following statement?
System.out.println(account);
(Multiple Choice)
4.7/5
(34)
The JVM periodically performs this process to remove unreferenced objects from memory.
(Multiple Choice)
4.8/5
(43)
If the following is from the method section of a UML diagram,which of the following statements is true? + add(object2:Stock): Stock
(Multiple Choice)
4.8/5
(31)
If the following is from the method section of a UML diagram,which of the following statements is true? + equals(object2:Stock): boolean
(Multiple Choice)
4.8/5
(30)
Look at the following declaration. enum Tree { OAK,MAPLE,PINE }
What is the ordinal value of the MAPLE enum constant?
(Multiple Choice)
4.8/5
(31)
If you write a toString method to display the contents of an object,object1,for a class,Class1,then the following two statements are equivalent:
System.out.println(object1);
System.out.println(object1.toString());
(True/False)
4.9/5
(39)
An instance of a class does not have to exist in order for values to be stored in a class's static fields.
(True/False)
4.7/5
(32)
A class's static methods do not operate on the fields that belong to any instance of the class.
(True/False)
4.8/5
(37)
Assuming the following declaration exists: enum Tree { OAK,MAPLE,PINE }
What will the following code display?
System.out.println(Tree.OAK);
(Multiple Choice)
4.8/5
(38)
Enumerated types have this method,which returns the position of an enum constant in the declaration list.
(Multiple Choice)
4.9/5
(34)
The term for the relationship created by object aggregation is
(Multiple Choice)
4.7/5
(31)
Showing 21 - 40 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)