Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In a Java program, what is the output of the following ( Hint: It is NOT 1 1 0 0 0 0 0 0 )

In a Java program, what is the output of the following (Hint: It is NOT 11000000)?
int w =9000000, x =2000000;
short y =0, z =0;
y =(short)w;
z =(short)x;
System.out.println(y + z);

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

The Structure Of The Relational Database Model

Authors: Jan Paredaens ,Paul De Bra ,Marc Gyssens ,Dirk Van Gucht

1st Edition

3642699588, 978-3642699580

More Books

Students also viewed these Databases questions

Question

1. Describe the types of power that effective leaders employ

Answered: 1 week ago

Question

How flying airoplane?

Answered: 1 week ago

Question

1 What demand is and what affects it.

Answered: 1 week ago