Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 11 The Ultimate Database For Cloud Analytics And Mobile

Authors: John Campbell, Chris Crone, Gareth Jones, Surekha Parekh, Jay Yothers

1st Edition

1583474013, 978-1583474013

More Books

Students also viewed these Databases questions

Question

Define Management or What is Management?

Answered: 1 week ago

Question

What do you understand by MBO?

Answered: 1 week ago

Question

8. Explain the relationship between communication and context.

Answered: 1 week ago

Question

d. How were you expected to contribute to family life?

Answered: 1 week ago