Question: QUESTION 6 The Java compiler ignores any text between ____. A. /* and */ B. */ and */ C. /# and #/ D. / and
QUESTION 6
The Java compiler ignores any text between ____.
| A. | /* and */ | |
| B. | */ and */ | |
| C. | /# and #/ | |
| D. | / and / |
QUESTION 7
Which one of the following is a valid header for a constructor for a class called Car?
| A. | Public void Car() | |
| B. | public Car(String model) | |
| C. | public class Car(String model) | |
| D. | public car(String model) |
QUESTION 8
In Java, the = operator
| A. | causes output to appear in the BlueJ Terminal Window | |
| B. | tests for equality | |
| C. | sets a variable to the given value | |
| D. | has no definition |
QUESTION 9
In Java, the statement
days++;
has the same effect as
| A. | days = days + 1; | |
| B. | days = days + days; | |
| C. | days + 1 = days; | |
| D. | days = 1; |
QUESTION 10
Which of the following are Java naming conventions?
#1: Classes start with an uppercase letter
#2: Methods (except for the constructor) start with an uppercase letter
#3: Objects start with a lowercase letter
#4: Objects start with an uppercase letter
#5: Classes start with a lowercase letter
#6: Methods (except for the constructor) start with a lowercase letter
| A. | #4, #5 and #6 | |
| B. | #1, #2 and #4 | |
| C. | #1, #3 and #6 | |
| D. | #3, #5 and #6 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
