Multiple Choice
Which one of the following variables is assigned with valid literals?
A) int salary = 0;
Salary = 5000.50;
B) int salary1 = 0;
Salary1 = 1.2E6;
C) double salary2 = 0;
Salary2 = 2.96E-2;
D) long salary3 = 0;
Salary3 = 1E-6;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q5: Which statement is true about variable names
Q50: Which one of the following statements gives
Q63: Which statements about numeric types in Java
Q102: Which one of the following statements defines
Q103: Assuming that the user inputs a value
Q106: What is the output of this code
Q108: What output is produced by these statements?
Q110: Which is the Java equivalent of the
Q111: Assuming price contains the value 20.0, which
Q113: How do you extract the first 5