Questions from Starting Out With Java


Q: Which of the following are illegal variable names and why?

Which of the following are illegal variable names and why? x 99bottles july97 theSalesFigureForFiscalYear98 r&d grade_report

See Answer

Q: Is the variable name Sales the same as sales? Why or

Is the variable name Sales the same as sales? Why or why not?

See Answer

Q: Refer to the Java primitive data types for this question.

Refer to the Java primitive data types for this question. 1. If a variable needs to hold whole numbers in the range 32 to 6,000, what primitive data type would be best? 2. If a variable needs to hold...

See Answer

Q: How would the number 6.31×1017 be represented in

How would the number 6.31×1017 be represented in E notation?

See Answer

Q: A program declares a float variable named number, and the following

A program declares a float variable named number, and the following statement causes an error. What can be done to fix the error? number = 7.4;

See Answer

Q: What values can boolean variables hold?

What values can boolean variables hold?

See Answer

Q: Write statements that do the following: 1. Declare a

Write statements that do the following: 1. Declare a char variable named letter. 2. Assign the letter A to the letter variable. 3. Display the contents of the letter variable.

See Answer

Q: In question 11, you wrote the code for an event handler

In question 11, you wrote the code for an event handler class, and in question 12, you wrote the code to register an instance of that class with the myButton control. Rewrite the code as a lambda expr...

See Answer

Q: What are the Unicode codes for the characters ‘C’,

What are the Unicode codes for the characters ‘C’, ‘F’, and ‘W’?

See Answer

Q: When the program is saved to a file, what should the

When the program is saved to a file, what should the file be named?

See Answer