JAVA Constructors and Methods
What is the output for the below code?public class Test{ public static void printValue(int i, int j, int k){ System.out.println("int"); } public static void printValue(byte...b){ System.out.println("long"); } public static void main(String... args){ byte b = 9; printValue(b,b,b); }}

Compilation fails
int
None of these
long
Compilation clean but throws RuntimeException

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.

examians() throws IOException{}
void examians() throw IOException{}
void examians(void) throws IOException{}
void examians() throws IOException{}
void examians() {} throws IOException

ANSWER DOWNLOAD EXAMIANS APP