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.


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
Get step-by-step solutions from verified subject matter experts
