The following program has 9 mistakes. What are they? public class Oops3 { public static void main
Question:
The following program has 9 mistakes. What are they?
Transcribed Image Text:
public class Oops3 { public static void main () { double bubble = 867.5309; %3D double x = 10.01; printer (double x, double y); 6. printer (x); printer ("barack", "obama"); 8. System.out.println ("z = " + z); 9. } 10 11 public static void printer (x, y double) { 12 int z 5; 13 System.out.println ("x = " + double x + " and y = " + y); 14 System.out.println ("The value from main is: " + bubble); 15 } 16
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 63% (11 reviews)
Mistakes in Oops3 program 1 line 5 cannot use variable y without d...View the full answer
Answered By
HILLARY KIYAYI
I am a multi-skilled, reliable & talented Market analysis & Research Writer with a proven ability to produce Scholarly Papers, Reports, Research and Article Writing and much more. My ultimate quality is my English writing/verbal skill. That skill has proven to be the most valuable asset for project writing, Academic & Research writing, Proofreading, HR Management Writing, business, sales, and a variety of other opportunities.
4.80+
24+ Reviews
60+ Question Solved
Related Book For
Building Java Programs A Back To Basics Approach
ISBN: 9780135471944
5th Edition
Authors: Stuart Reges, Marty Stepp
Question Posted:
Students also viewed these Computer science questions
-
The following program has been prepared for the audit of accrued real estate taxes of a client that pays taxes on 25 different pieces of property, some of which have been acquired in the current...
-
What kind of mistakes might ES make and why? Why is it easier to correct mistakes in ES than in conventional computer programs?
-
What mistakes are first-time exporters most likely to make? Outline the steps a small company should take to establish a successful export program.
-
At the beginning of the year, Anna began a calendar-year business and placed in service the following assets during the year: Asset Date Acquired Cost Basis Computers 1/30 $28,000 Office desks 2/15...
-
Refrigerant-134a at 800 kPa and 25C is throttled to a temperature of 220C. Determine the pressure and the internal energy of the refrigerant at the final state.
-
What is the difference between a client and a server?
-
The drag characteristics for a newly designed automobile having a maximum characteristic length of \(20 \mathrm{ft}\) are to be determined through a model study. The characteristics at both low speed...
-
Harrison Wolfe operates a residential landscaping business in an affluent suburb of Atlanta. In an effort to provide quality service, he has concentrated solely on the design and installation of...
-
Morten Hansen, in his book Great at Work , challenges the long-held practice and belief by many organizations that in order to succeed and grow the organization, employees need to work longer hours....
-
What is capital budgeting? Are there any similarities between a firms capital budgeting decisions and an individuals investment decisions?
-
The following code attempts to draw a black-filled outer rectangle with a white-filled inner circle inside it: DrawingPanel panel = new DrawingPanel(200, 100); Graphics g = panel.getGraphics();...
-
Write a program that shows the total number of presents that the person in the song The Twelve Days of Christmas received on each day, as indicated in Table 3.5. Table 3.5 Twelve Days of Christmas
-
Explain how higher saving leads to a higher standard of living. What might deter a policymaker from trying to raise the rate of saving?
-
The UP is a/an ________ process. (a) computer programming (b) iterative model with milestone (c) software deployment (d) IBM rational Unified process
-
Why is Waterfall failure prone?
-
What is Iterative and Evolutionary Development?
-
What is meant by precondition and post-condition?
-
A class is a description of a set of objects that share the same (a) attributes, behavior and operations (b) identity, behavior and state (c) attributes, operations and relationships (d)...
-
A 3.0 C point charge is placed in an external uniform electric field that has a magnitude of 1.6 104 N/C. At what distance from the charge is the net electric field zero?
-
A regular deposit of $100 is made at the beginning of each year for 20 years. Simple interest is calculated at i% per year for the 20 years. At the end of the 20-year period, the total interest in...
-
Stations in a pure Aloha network send frames of size 1000 bits at the rate of 1 Mbps. What is the vulnerable time for this network?
-
In the previous problem, we showed that the throughput is S = Ge 2G for a pure Aloha network and S = Ge G for a slotted Aloha network. In this problem, we want to find the value of G in each network...
-
Stations in an slotted Aloha network send frames of size 1000 bits at the rate of 1 Mbps. What is the vulnerable time for this network?
-
How can you use your understanding of diversity to develop your relationship-building skills in your healthcare career?,Explain ways in which religion can help or hinder individuals as they build...
-
A Quality Management System, often called a QMS, is a set of internal rules that are defined by a collection of policies, processes, documented procedures, and records. This system defines how a...
-
1. Mr. Alvis, the director of Match Lighting, has found himself with sorts of emails including customer complaints about incorrect order deliveries, periodic reports on products, stock, and sales,...
Study smarter with the SolutionInn App