Question: 5. In a given class named Quiz, there can be only one method with the name Quiz. O true false 6. A static method is


5. In a given class named Quiz, there can be only one method with the name Quiz. O true false 6. A static method is a class method. an instance method. 7. In the Quiz class, the foo method has the following API: public static double foo( float f) What can you say about foo? It is an instance method. tootmobi It is a class field. It is a class method. It is an instance variable. 8. In the Quiz class, the foo method has the following API: public static void foo() How would you call that method? Quiz.foo(); Quiz.foo( 8 ); Quiz( foo()); 9. In the Quiz class, the foo method has the following API: public double foo( int i, String s, char c ) How many arguments does foo take? 0 O 2 3 10. In the Quiz class, the foo method has the following API: public double foo( int i, String s, char c ) What is the return type of method foo? double int char String 11. String is a primitive data type in Java. true false 12. Which one of the following is not an existing wrapper class? Integer Char Float Double 13. What is the proper way of accessing the constant E of the Math class? Math.E(); Math.E; E; Math(E)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
