what will the values of b, si, I, and f be when the program is executed?...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
what will the values of b, si, I, and f be when the program is executed? public class Preimative Types2 { } public static void main(String args[]) { byte b = 100; short s = 10000; int i = 100000; } long l = 1000000; float f = 123.4f; double d = 1.234e2; b = (byte) s; s = (byte) i; i = (int) l; 1 = (long) f; f = (float) d; what will the values of b, si, I, and f be when the program is executed? public class Preimative Types2 { } public static void main(String args[]) { byte b = 100; short s = 10000; int i = 100000; } long l = 1000000; float f = 123.4f; double d = 1.234e2; b = (byte) s; s = (byte) i; i = (int) l; 1 = (long) f; f = (float) d;
Expert Answer:
Answer rating: 100% (QA)
Q4 what will the values of b si I and f be when the b will be 112 s will be 34464 i will be ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
-> Perform the elementary row operation -3R +R R on the given matrix. [2 4 1 2 5 1 3 6 35-4 Resulting matrix: G
-
How do you simplify the max method in the following, using the conditional operator? 1: /** Return the max of two numbers */ 2: public static int max ( int num1, int num2 ) { 3: int result; 4: 5: if...
-
Declare and assign these variables as shown (all your code must appear in the body of the main method): String firstName = "Blueberry"; String lastName = "Strawberry"; In addition, declare and...
-
Solve the right triangles with the given parts or state that there is not enough information to solve. Round off results according to Table 4.1. Refer to Fig. 4.37. B = 32.1, c = 238 Data from Table...
-
Javier and Anita Sanchez purchased a home on January 1, 2016 for, $500,000 by paying $200,000 down and borrowing the remaining $300,000 with a 7 percent loan secured by the home. The loan requires...
-
Reconsider Exploration 1.3, where we explored whether the long-run proportion that students in a class would correctly assign the names Bob and Tim to the pictures. We tested to see if this long-run...
-
Using the above data, calculate the operatingcash-flow-to-capital-expenditures ratio for Evans \& Sons. The following information for Evans \& Sons relates Cash flow from operating activities......
-
A group of developers is opening a health club near a new housing development. The health clubwhich will have exercise and workout equipment, basketball courts, swimming pools, an indoor...
-
An analyst is modelling annual sales revenue ($ 000's) against the number of hours a store is closed, the annual advertising expenditure ($) spent by the store and the number of sales staff members...
-
Required - Please submit the following two documents: 1. Using Excel, submit the following: i. ii. Calculate Rashmika's minimum net income for tax purposes in accordance with the ordering provisions...
-
Given the below information, calculate the effective tax rate expressed in mills. Market value of property: $495,672, Assessed value of property: 85% of the market value, Exemptions: $7,748, Annual...
-
Three children are riding on the edge of a merry-go-round that has a mass of 105 kg and a radius of 1.72 m. The merry-go-round is spinning at 24.2 rpm. The children have masses of 22.0, 28.0, and...
-
Two blocks are positioned on surfaces, each inclined at the same angle of 57.0 degrees with respect to the horizontal. The blocks are connected by a rope which rests on a frictionless pulley at the...
-
Convert functions to logic circuits: 3.1) f=(B+C+D) (A+C+D') (C'+D) 3.2) f=(CD)+(CD)+(ABD) 3.3) f=(A'C)+(A'D)+(B C') + (BD)
-
(c). Find the values of m and k that make f continuous everywhere. f(x) = (x33x212x+4 x3 - 4x mx + kx 3x-k, - 1 Z' ' X2 -1
-
A 1.9 kg book is lying on a 0.76 m -high table. You pick it up and place it on a bookshelf 2.1 m above the floor. Part A During this process, how much work does gravity do on the book? Express your...
-
Zellers Canada Itd estimates that annual manufacturing overhead costs will be $ 5 0 0 , 0 0 0 . UCW allocates overhead to jobs based on machine hours, and it expects that 3 0 0 , 0 0 0 units to be...
-
What are the three kinds of research types? Explain each type.
-
Calculate the minimum time required to download one million bytes of information using a 56K modem.
-
Write a method in Java to add a given prefix (as an integer) at the end of an IP address to create a string representing the CIDR notation (x.y.z.t/n).
-
Explain which entity provides service and which one receives service in the client-server paradigm.
-
For each of the following situations, indicate the amount shown as a liability on the balance sheet of Cooper, Inc., at December 31: a. Cooper has accounts payable of \(\$ 120,000\) for merchandise...
-
The following note transactions occurred during the year for Towne Company: Nov. 25 Towne issued a 90 -day, nine percent note payable for \(\$ 8,000\) to Hyatt Company for merchandise. Dec. 7 Towne...
-
Eaton Company issued \(\$ 600,000\) of eight percent, 20 -year bonds at 106 on January 1, 2013. Interest is payable semiannually on July 1 and January 1. Through January 1, 2019, Eaton amortized \(\$...
Study smarter with the SolutionInn App