Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 18 // Write the explanation!!!!! What is the output of this code sequence? double [ ] [ ] a = {{ 100.4, 99.6, 48.2,

Question 18 // Write the explanation!!!!!

What is the output of this code sequence?

double [ ] [ ] a =

{{ 100.4, 99.6, 48.2, 65.8 }, { 100.5, 99.7, 48.2, 65.8 }};

double temp = a[0][1];

for ( int i = 1; i < a.length; i++ )

for ( int j = 1; j < a[i].length; j++ )

{

if ( a[i][j] > temp )

temp = a[i][j];

}

System.out.println( temp );

a.

99.6

b.

100.4

c.

99.7

d.

100.5

Question 27 // If the answer is a, Eplain why the answer is a not b; If the answer is b, explain why the answer is b not a; If the answer is both a and b, explain why.

Assuming the class B extends class A, then

a.

An object of class B is an object of class A

b.

An object of class A is an object of class B

c.

Both a and b

d.

None of the above

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

Step: 3

blur-text-image

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

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions