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...
-
Napanee Resources Inc. has assembled the following data for the year ended June 30, 2014. Payment of dividends............................................................... $ 12,000 Cash received...
-
SR 5.33 What characteristics are represented by a Font object?
-
Conger and Kanungos model emphasizes all of the following except (a) active management by exception. (b) vision articulation. (c) environmental sensitivity. (d) unconventional behavior.
-
In February 2015, Arctic Cat, Inc., acquired the assets and liabilities of MotorFist, LLC, a privately owned company based in Idaho Falls, Idaho, in exchange for $9.118 million in cash and contingent...
-
Bill's Birdhouses COSTS REVENUES Quantity Total Marginal Quantity Produced Cost Cost Demanded Price 0 SO $50 0 $80 $80 2 $102 2 $80 3 $157 3 $80 4 $217 4 $80 5 $285 5 $80 6 $365 6 $80 7 $462 7 $80 8...
-
Tamar Company manufactures a single product in two departments: Forming and Assembly. Information for the Forming process for May follows. Beginning work in process inventory Units started this...
-
Explain the functions of HRM. Discuss the role of HRM in talent acquisition, employee development, and retention strategies.
-
Explain the concept of consolidating financial statements when you acquire more than 50% of a company's voting common stock.
-
Weller Industries is a decentralized organization with six divisions. The companys Electrical Division produces a variety of electrical items, including an X52 electrical fitting. The Electrical...
-
Case 11-26 (Algo) Transfer Pricing; Divisional Performance [LO11-3] Weller Industries has six divisions. Its Electrical Division (which is operating at capacity) produces a variety of electrical...
-
Case 11-26 (Algo) Transfer Pricing; Divisional Performance [LO11-3] Weller Industries has six divisions. Its Electrical Division (which is operating at capacity) produces a variety of electrical...
-
Each question may have multiple correct answers. 1. [5pts] At t> 0, the voltage on the 0.5 F capacitor shown in Fig. Al has the form v(t) = -20e-1000t (V), The power for the capacitor at = 500 s...
-
To help a company finance the construction of a building, the government provides $116,000 cash, in exchange for a $116,000, five- year, zero-interest-bearing note at face value when the market rate...
-
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.
-
Indicate the method of buying (description, inspection, sampling, or negotiation) an organization would be most likely to use when purchasing each of the following items. Defend your selections. a. A...
-
Identify organizations in your area that fit each business market category: producer, reseller, government, and institutional. Explain your classifications.
-
Barajas Printing Corp. uses a job order cost system. The following data summa- Prepare entries for manufacrize the operations related to the first quarter's production. turing costs. (SO 2, 3, 4. 5)...
Study smarter with the SolutionInn App