Answer: Option 2 Compiler Error : Type mismatch in redeclaration of function display As the function display() is not defined before use, compiler will assume the return type of the function...
1 Answers 9 viewsAnswer: Option 1 Global and static variable need not be initialized before use. Default value of global and static int variable is zero. Default value of boolean variable is false....
1 Answers 2 viewsAnswer: Option 4 Implicit super constructor Base is not visible, must explicitly invoke another constructor.
1 Answers 5 viewsAnswer: Option 3 1. new Derived(); statement executes and invoke the non-parametrized constructor of derived class i.e. public Derived(); 2. As Derived class is a subclass of class Base so super(); executes...
1 Answers 25 viewsAnswer: Option 2 As the first option is matching, the cases are evaluated till the break statement is encountered or end of switch statement is encountered.
1 Answers 4 viewsAnswer: Option 3 Let'
1 Answers 2 viewsAnswer: Option 3 Let'
1 Answers 4 views