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();}}

Compilation Error
Runtime Exception
Wild Animal
Animal Wild

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() throws IOException{}
void examians(void) throws IOException{}
void examians() {} throws IOException
void examians() throw IOException{}
examians() throws IOException{}

ANSWER DOWNLOAD EXAMIANS APP