Solved

Assume the Following Variables Have Been Declared and Given Values

Question 93

Multiple Choice

Assume the following variables have been declared and given values as shown:
int i = 2345;
double m = 67.8;
What will be printed by the statement below?
System.out.printf("Values are %10d and %7.2f", i, j) ;


A) Values are 2345 and 67.8
B) Values are 2345 and 67.80
C) Values are %10d and %7.2f 2345 67.8
D) Values are %10d and %7.2f i j

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents