Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started