Exam 6: Methods: a Deeper Look
Exam 1: Introduction to Computers and Java42 Questions
Exam 2: Introduction to Java Applications34 Questions
Exam 3: Introduction to Classes and Objects34 Questions
Exam 4: Control Statements: Part 142 Questions
Exam 5: Control Statements: Part 227 Questions
Exam 6: Methods: a Deeper Look39 Questions
Exam 7: Arrays and Arraylists44 Questions
Exam 8: Classes and Objects: a Deeper Look27 Questions
Exam 9: Object Oriented Programming: Inheritance22 Questions
Exam 10: Object-Oriented Programming: Polymorphism28 Questions
Exam 11: Exception Handling27 Questions
Exam 12: Gui Components: Part 170 Questions
Exam 13: Graphics and Java 2D19 Questions
Exam 14: Strings27 Questions
Exam 15: Files,streams and Object Serialization29 Questions
Exam 16: Generic Collections41 Questions
Exam 17: Lambdas60 Questions
Exam 18: Recursion13 Questions
Exam 19: Searching, Sorting and Big O22 Questions
Exam 20: Generic Classes and Methods15 Questions
Exam 21: Custom Generic Data Structures17 Questions
Exam 23: Concurrency55 Questions
Exam 24: Accessing Databases With Jdbc35 Questions
Exam 25: JavaFX26 Questions
Select questions type
Math static method random generates a random double value in the range from 0.0
(Multiple Choice)
4.7/5
(41)
A Java class can have which of the following methods?
a)void foo(int a)
b)void foo(int a,int b)
c)void foo(double a)
d)void foo(double a,double b)
e)void foo(int b)
(Multiple Choice)
4.9/5
(33)
Which is a correct static method call of Math class method sqrt?
(Multiple Choice)
4.7/5
(46)
6)3 Q7: Declaring main as static allows the JVM to invoke main ________.
(Multiple Choice)
4.8/5
(33)
Which statement below could be used to simulate the outputs of tossing a quarter to get heads or tails? Suppose randomNumbers is a SecureRandom object.
(Multiple Choice)
4.8/5
(33)
The parameter list in the method header and the arguments in the method call must agree in:
(Multiple Choice)
4.9/5
(49)
In a class containing methods with the same name,the methods are distinguished by ________.
(Multiple Choice)
4.9/5
(28)
Which statement creates a random value from the sequence 2,5,8,11 and 14.Suppose randomNumbers is a SecureRandom object.
(Multiple Choice)
4.9/5
(31)
To declare a method as static,place the keyword static before ________ in the method's declaration.
(Multiple Choice)
4.8/5
(29)
A set of named constants that start with the value 0 for the first constant and increment by 1 for each subsequent constant can be declared as a(n)________.
(Multiple Choice)
4.9/5
(33)
Showing 21 - 39 of 39
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)