Single Choice
Not Set
QGuess the output of the following program -
public class NumberSystem{
public static void main(String[] args){
int val = 0b11010;
System.out.println("Value : " + val);
}
}
ID: #2085
Java Data Types and Variables - MCQ
3,960 views
Question Info
#2085Q ID
Not SetDifficulty
Java Data Types and Variables - MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
Its binary representation of 26. Binary Literal is accepted in latest JDK 7.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic