JAVA Constructors and Methods What is Math.floor(3.6)? 4 3.0 4.0 3 4 3.0 4.0 3 ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods Which of these is a legal definition of a method named examveda assuming it throws IOException, and returns void. Also assume that the method does not take any arguments. Select the one correct answer. void examians(void) throws IOException{} examians() throws IOException{} void examians() {} throws IOException void examians() throws IOException{} void examians() throw IOException{} void examians(void) throws IOException{} examians() throws IOException{} void examians() {} throws IOException void examians() throws IOException{} void examians() throw IOException{} ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods What will be the return type of a method that not returns any value? None of these double void int None of these double void int 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 Stack Array Heap Storage Area Stack Array Heap 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();}} Wild Animal Compilation Error Animal Wild Runtime Exception Wild Animal Compilation Error Animal Wild Runtime Exception 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