Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the output of the following code? import java.lang.Math. class Main public static void main(String args[]) System.out.println(Math. round(-7.5)); System.out.println(Math.abs (-7.5)): System.out.println(Math.ceil(-7.5)); System.out.println(Math.floor (-7.5)); a.

image text in transcribed

What is the output of the following code? import java.lang.Math. class Main public static void main(String args[]) System.out.println(Math. round(-7.5)); System.out.println(Math.abs (-7.5)): System.out.println(Math.ceil(-7.5)); System.out.println(Math.floor (-7.5)); a. -7 7.5-7.0-8.0 b. -8 7.5 -7.0-8.0 c. -8-7-8.0-7.0 d -77-7.0-8.0

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

Oracle 11G SQL

Authors: Joan Casteel

2nd Edition

1133947360, 978-1133947363

More Books

Students also viewed these Databases questions

Question

=+such as the dirigenti in Italy?

Answered: 1 week ago

Question

=+ Are there closed-shop requirements or practices?

Answered: 1 week ago