Java
What will ...
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
What will be written as a result of executing the following code fragment:
System.out.println(01232d);
1232
01232d
1232.0
666 (octal 1232)
4658 (hex 1232)
compilation error
Explanation
character
d
in the end emphasizes that the number is real (double), so the zero character at the beginning doesn't matter
numbers
1
(1)
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
Related Content
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? ...
What is the following program output: class Main { ...
What will be displayed, if the following code is compiled and executed: ...
What is the result of the following code compilation and execution: ...
What will be the result of the following program 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