Exam 5: Defining Classes Ii
Exam 1: Getting Started46 Questions
Exam 2: Console Input and Output29 Questions
Exam 3: Flow of Control43 Questions
Exam 4: Defining Classes I44 Questions
Exam 5: Defining Classes Ii46 Questions
Exam 6: Arrays47 Questions
Exam 7: Inheritance43 Questions
Exam 8: Console Input and Output43 Questions
Exam 9: Exception Handling45 Questions
Exam 10: File IO46 Questions
Exam 12: Uml and Patterns22 Questions
Exam 13: Interfaces and Inner Classes32 Questions
Exam 14: Generics and the Arraylist Class31 Questions
Exam 15: Linked Data Structures43 Questions
Exam 16: Collections and Iterators44 Questions
Exam 17: Swing I37 Questions
Exam 18: Swing II31 Questions
Exam 19: Java Never Ends18 Questions
Exam 11: Recursion43 Questions
Exam 20: Applets25 Questions
Select questions type
To create a package,you must add a package statement at the ____________ of each class file.
Free
(Multiple Choice)
4.8/5
(33)
Correct Answer:
A
Write ONE Java statement that computes and displays a random number between 1 and 25.
Free
(Essay)
4.8/5
(42)
Correct Answer:
System.out.println("Random number between 1 and 25 " + Math.round((Math.random()* 25)));
Wrapper classes are provided for all primitive Java types except Boolean.
Free
(True/False)
4.7/5
(36)
Correct Answer:
False
Write a statement that creates and initializes a static variable named salesTax to 7.59.
(Short Answer)
4.8/5
(36)
When you use the assignment operator with variables of a class type,you are assigning a:
(Multiple Choice)
4.7/5
(34)
Wrapper classes provide a class type corresponding to each of the primitive types so that you can have class types that behave somewhat like primitive types.
(True/False)
4.7/5
(38)
Does an object created with a copy constructor reference the same memory location that the original object references? Explain.
(Essay)
4.8/5
(38)
Write a Java method that returns true if and only if a character is a digit or a letter.The method should display appropriate feedback to the console.
(Essay)
4.8/5
(35)
Converting from a value of primitive type to a corresponding object of its associated wrapper class is called:
(Multiple Choice)
4.9/5
(41)
To use a package,the program must contain an import statement that names the package.
(True/False)
4.9/5
(42)
Add a constructor and a copy constructor to the Book class created in question #13.
(Essay)
4.8/5
(27)
Write a statement that creates a constant variable named TAX_RATE.The tax rate is 8.25%.
(Essay)
4.9/5
(35)
The program included in the Java SDK that allows a programmer to separate the class interface from the class implementation is called:
(Multiple Choice)
4.9/5
(32)
Showing 1 - 20 of 46
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)