Question: Please Answer Both Mcqs. They are different questions. How many of them (a.i, a.j. a.k, b.i, b.j and b.k) can be printed in the question

Please Answer Both Mcqs. They are different questions.

Please Answer Both Mcqs. They are different questions. How many of them

(a.i, a.j. a.k, b.i, b.j and b.k) can be printed in the

How many of them (a.i, a.j. a.k, b.i, b.j and b.k) can be printed in the question mark area? [ans] package pl: public class A \{ int i=5 : private int j=10; protected int k=15; ) package p2; import p1.*; public class B extends A \{ public static void main(String[] args) \{ A a = new AO; Bb= new BO; System.out.println(?); \} \} What would be the outputs of p.i and p.j

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!