JAVA Constructors and Methods What is Math.floor(3.6)? 3 4 4.0 3.0 3 4 4.0 3.0 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 instance variables None of these objects reference variables instance variables None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods Determine output of the following program.public class Test{ public static void main(String args[]){ System.out.println( Math.floor( Math.random( ) ) ) ; }} 1.0 0.0 0.5 10.0 1.0 0.0 0.5 10.0 ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods What is the expected output?class Animal {Animal() {System.out.println("Animal");}}class Wild extends Animal{Wild() {System.out.println("Wild");super();}}public class Test {public static void main(String args[]) {Wild wild = new Wild();}} Runtime Exception Animal Wild Compilation Error Wild Animal Runtime Exception Animal Wild Compilation Error Wild Animal ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods Determine output:public class Test{ public static void main(String args[]){ MyClass obj = new MyClass(); obj.val = 1; obj.call(obj); System.out.println(obj.val); }}class MyClass{ public int val; public void call(MyClass ref){ ref.val++; }} 2 1 Compilation Error 3 None of these 2 1 Compilation Error 3 None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods In which area of memory, the system stores parameters and local variables whenever a method is invoked? Storage Area Array Stack Heap Storage Area Array Stack Heap ANSWER DOWNLOAD EXAMIANS APP