Table of Contents
Overriding and Overloading in Java
🔒 Please log in to unlock this course.
ONLINE CLASSES BY RUMMAN ANSARI
Stuck on a Java Program? Ask Your Doubt Directly
Book a one-to-one session to get your questions answered, or message on WhatsApp for live online classes in Java Programming.
- 1:1 Mentoring
- Doubt Clearing
- Interview Preparation
MCQ Section
MCQ 1
Determine output: class A{ public void printValue(){ System.out.println("Value-A"); } } class B…
Locked. Enroll to open this MCQ.
MCQ 2
What will be the output? class A{ static void method(){ System.out.println("Class A method"); } }…
Locked. Enroll to open this MCQ.
MCQ 3
What is the output for the below code ? class A{ public A(){ System.out.println("A"); } public…
Locked. Enroll to open this MCQ.
MCQ 4
What is the output for the below code? public class Test{ public static void printValue(int i, int…
Locked. Enroll to open this MCQ.
MCQ 5
What will be printed after executing following program code? class Base{ int value = 0; Base(){…
Locked. Enroll to open this MCQ.
MCQ 6
What will be the output? interface A{ public void method1(); } class One implements A{ public void…
Locked. Enroll to open this MCQ.
MCQ 7
What will be the output? class A{ int i = 10; public void printValue(){…
Locked. Enroll to open this MCQ.
MCQ 8
What will be the output of the following program code? class Rectangle{ public int area(int length,…
Locked. Enroll to open this MCQ.
MCQ 9
What is output of the program? class Test{ public void display(int x, double y){…
Locked. Enroll to open this MCQ.
MCQ 10
What is the output for the below code ? class A{ private void printName(){…
Locked. Enroll to open this MCQ.
MCQ 11
what is the result of the following piece of code: public class Person{ public void talk(){…
Locked. Enroll to open this MCQ.
MCQ 12
____________ method cannot be overridden.
Locked. Enroll to open this MCQ.
Get Java Programming Language updates by email
Short, practical lessons and course updates from Rumman Ansari. No spam.