Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Which of the following are legal lines of Java code? 1. int w = (int)888.8; 2. byte x = (byte)100L; 3. long y = (byte)100;

Which of the following are legal lines of Java code?
1. int w = (int)888.8;
2. byte x = (byte)100L;
3. long y = (byte)100;
4. byte z = (byte)100L;
a) 1 and 2
b) 2 and 3
c) 3 and 4
d) All statements are correct.

Step by Step Solution

3.38 Rating (145 Votes )

There are 3 Steps involved in it

Step: 1

Correct Option D All four statements are correct Option 1 is correct because when a floatin... 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

Applied Linear Algebra

Authors: Peter J. Olver, Cheri Shakiban

1st edition

131473824, 978-0131473829

More Books

Students also viewed these Programming questions

Question

In your opinion, are any additional laws needed in these areas?

Answered: 1 week ago

Question

Describe the key steps to improve data quality in an organization.

Answered: 1 week ago