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
Q9: Which of the following options declares a
Q14: What is wrong with the following code
Q16: What is the output of the following
Q18: What is the value inside the value
Q20: What will be the value inside the
Q22: Assuming that the user enters 45 and
Q23: Which is the Java equivalent of the
Q49: What is the value of Math.pow(3, 2)?
A)6.0
B)9.0
C)8.0
D)5.0
Q112: Which operator is used to concatenate two
Q116: How do you compute the length of
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents