- Compilation fails.
- An exception is thrown at runtime.
- "go" is printed
- "gogogo" is printed
- "gogo" is printed
Answer: 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 2 Let'
1 Answers 1 viewsAnswer: Option 1 The options B, C and D are incorrect options as in Java we can declare an abstract class comprising of abstract and non-abstract methods that will not...
1 Answers 1 viewsAnswer: Option 2 Let'
1 Answers 4 viewsAnswer: Option 3 The program will compile and execute successfully as you can declare methods with same name in an interface and the method of either interface can be used,...
1 Answers 1 viewsAnswer: Option 1 Let'
1 Answers 140 viewsAnswer: Option 3 Let'
1 Answers 2 viewsAnswer: Option 3 Let'
1 Answers 4 views