JAVA Constructors and Methods
public class MyClass{ }For the above class(MyClass) what is the correct way of declaring constructor?

MyClass(){}
public MyClass(){}
MyClass(void) {}
public MyClass(void){}
1 and 3

ANSWER DOWNLOAD EXAMIANS APP

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
None of these
Compilation clean but throws RuntimeException
int
long

ANSWER DOWNLOAD EXAMIANS APP