In what ways can 28 be represented in java?
Explanation
If the number in java starts with 0, the number is in octal (base8) numeral system. And 034 == 28.
If the number starts with 0x, the number is in hexadecimal (base 16) numeral system. And 0x1C == 28
Number literals in java are case insensitive.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes