Question: 18. What does the third line below do? double salary; String input; salary = Double.parseDouble (input); a. changes a String value into a Double

18. What does the third line below do? double salary; String input;

18. What does the third line below do? double salary; String input; salary = Double.parseDouble (input); a. changes a String value into a Double value b. adds input to salary is syntax error is run time error C. d. 19. The scope of variables declared (defined) in the main method are: a. known throughout the class b. known in all methods C. d. 20. A method that returns no value must be declared as: a. static b. void complex one way C. d. known throughout the package know only in the main method 21. A switch statement a. mixes or switches one or more variables b. lets the value of variable or expression determine where the program will branch to cannot have a default outcome can only be used in the main method C. d. 22. What Java keyword makes a value unchangeable (constant) during program execution? a. const b. final C. permanent d. fixed 23. Which one of the follow are not a valid assignment statement? a. total = 9 + 2; b. 72 = amount + 1; C. profit = 129 - 19; d. myCharacter = 'W';

Step by Step Solution

3.49 Rating (175 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Lets go through each question 18 What does the third line below do java salary DoubleparseDoubleinpu... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!