Java
In what wa ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
In what ways can 28 be represented in java?
034
0X1C
0x1c
0X1c
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.
numbers
Integer
numeral systems
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
Related Content
What is the result of the following code execution? int...
What will be the output of the following code? (JDK version >= 1.5) ...
What will be the result of compilation and execution of the following code: ...
Mark the answer choices in which the pairs are equal to each other (2 correct an...
What will be printed out as a result of the following code execution? ...
J
ava
Quiz
Login to learn Java
or
Read more about
Java Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Keep exploring
Java quizzes
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
int i = Integer.MAX_VALUE + 10; What is th...
What happens after the following code is compiled and run: ...
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment