JAVA Constructors and Methods What will be the return type of a method that not returns any value? None of these void int double None of these void int double ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods What is Math.floor(3.6)? 4 3 3.0 4.0 4 3 3.0 4.0 ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods Which of the following options is the best for generating random integer 0 or 1? (int)(Math.random() + 0.2) (int)Math.random() + 1 (int)Math.random() (int)(Math.random() + 0.5) (int)(Math.random() + 0.2) (int)Math.random() + 1 (int)Math.random() (int)(Math.random() + 0.5) ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods The variables declared in a class for the use of all methods of the class are called objects reference variables None of these instance variables objects reference variables None of these instance variables ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods Given the following piece of code:class Person{ public int number;}public class Test{ public void doIt(int i , Person p){ i = 5; p.number = 8; } public static void main(String args[]){ int x = 0; Person p = new Person(); new Test().doIt(x, p); System.out.println(x + " " + p.number); }}What is the result? 5 0 0 0 0 8 5 8 5 0 0 0 0 8 5 8 ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods Which of the modifier can't be used for constructors? static private protected public static private protected public ANSWER DOWNLOAD EXAMIANS APP