Bissoy.com
Login
Doctors
Medicines
MCQs
Q&A
Ask
Merit Test
Questions
Courses
Which statements are most accurate regarding the following classes class A{ private int i; protected int j; } class B extends A{ private int k; protected int m; }?
An object of B contains data fields i, j, k, m.
An object of B contains data fields j, k, m.
An object of B contains data fields j, m.
An object of B contains data fields k, m.
LohaHridoy
0
Edit
5
views
2025-01-04 04:42
1
Answers
AhmedNazir
Answer: Option 2
Let'
0
Thanks
5
views
Answered
2022-09-01 13:21
Report
Edit
Call
Related Questions
Directions : Following question consists of a statement followed by four arguments I, II, III and IV. You have to decide which of the arguments is a STRONG arguments and which is a WEAK Argument. Statement : Should the rule of wearing helmet for both driver and pillion rider while driving a motor bike be enforced strictly Arguments : I. Yes. It is a rule and rules should be followed strictly by all. II. No. Each individual knows how to protect his own life and it should be left to his discretion. III. No. It does not ensure safety as only the head is protected and rest of the body is not. IV. Yes. It is a necessity as head, being the most sensitive organ, is protected by the helmet.?
1 Answers
5
Views
What will be the output class A{ static void method(){ System.out.println("Class A method"); } } class B extends A{ static void method(){ System.out.println("Class B method"); } } public class Test{ public static void main(String args[]){ A a = new B(); a.method(); } }?
1 Answers
5
Views
What will be the output interface A{ public void method(); } class One{ public void method(){ System.out.println("Class One method"); } } class Two extends One implements A{ public void method(){ System.out.println("Class Two method"); } } public class Test extends Two{ public static void main(String[] args){ A a = new Two(); a.method(); } }?
1 Answers
13
Views
What will be the output class Parent{ public void method(){ System.out.println("Hi i am parent"); } } public class Child extends Parent{ protected void method(){ System.out.println("Hi i am Child"); } public static void main(String args[]){ Child child = new Child(); child.method(); } }?
1 Answers
9
Views
What will be the result of compiling and executing the following program code class Vehicle{ public void printSound(){ System.out.print("vehicle"); } } class Car extends Vehicle{ public void printSound(){ System.out.print("car"); } } class Bike extends Vehicle{ public void printSound(){ System.out.print("bike"); } } public class Test{ public static void main(String[] args){ Vehicle v = new Car(); Bike b = (Bike) v; v.printSound(); b.printSound(); } }?
1 Answers
6
Views
The visibility of a property or method can be defined by prefixing the declaration with the keywords public, protected or private. Class members declared public can be accessed everywhere. Members declared protected can be accessed only within the class itself and by inherited classes. Members declared as private are not accessible.?
1 Answers
4
Views
Direction : Two statements I and II are given. These statement may be either independent causes or may be effects of independent causes or a common cause. One of these statements may be the effect of the other statements. Read both the statements and decide which of the following answer choice correctly depicts the relationship between these two statements. Mark answer : I. Many people in the area are reported to be suffering from Malaria. II. Private Medical Practitioner in the area have decided to close their clinics for few days.?
1 Answers
4
Views
Direction : Two statements I and II are given. These statement may be either independent causes or may be effects of independent causes or a common cause. One of these statements may be the effect of the other statements. Read both the statements and decide which of the following answer choice correctly depicts the relationship between these two statements. Mark answer : I. The Reserve bank of India has recently put restrictions on few small banks in the country. II. The small banks in the private and co-operative sector in India are not in a position to withstand the competitions of the bigger in the public sector.?
1 Answers
6
Views
Direction : Two statements I and II are given. These statement may be either independent causes or may be effects of independent causes or a common cause. One of these statements may be the effect of the other statements. Read both the statements and decide which of the following answer choice correctly depicts the relationship between these two statements. Mark answer : I. The school authority has asked the X Std. students to attend special classes to be conducted on Sundays. II. The parents of the X Std. students have withdrawn their wards from attending private tuitions conducted on Sundays.?
1 Answers
5
Views
Direction : Two statements I and II are given. These statement may be either independent causes or may be effects of independent causes or a common cause. One of these statements may be the effect of the other statements. Read both the statements and decide which of the following answer choice correctly depicts the relationship between these two statements. Mark answer : I.The performance of most of the students in final exam of class X in the schools run by the Government was excellent. II. Many teachers of the Government schools left the school and joined private schools.?
1 Answers
4
Views
কোরআন
হাদিস
চাকুরি প্রস্তুতি
বিশ্ববিদ্যালয় ভর্তি
মেডিকেল SBA
12
এইচএসসি
10
এসএসসি
8
জেএসসি
এক্সাম দিয়ে মেধা যাচাই করুন
Job Preparation (1125)
Admission (754)
এসএসসি (10)
এইচএসসি (5)
Login Required
You need to log in to continue.
Login
Cancel
Download Required
You need to download the app to make a call.
Download
Cancel