5 years ago in Java Data Types

What is the output of following code snippet ?
public class NumberSystem{

public static void main(String[] args){

int val = 0b11010;

System.out.println("Value : " + val);

}

}

[A] 32
[B] 64
[C] 28
[D] 26
Loading...
Next Question

Overall Stats

Attempted 326
Correct 56
Incorrect 127
Viewed 143

Answers

Guest
Guest
Zo Go
Zo Go - 8 hours ago

Zo Go from Casablanca, Morocco is saying 64 is correct answer

yassine merz
yassine merz - 2 days ago

yassine merz from Casablanca, Morocco is saying 64 is correct answer

suman pandey
suman pandey - 6 days ago

suman pandey from Pune, India is saying 28 is correct answer

Souad El
Souad El - 2 weeks ago

Souad El from Casablanca, Morocco is saying 64 is correct answer

Cos Sinus
Cos Sinus - 2 weeks ago

Cos Sinus from Casablanca, Morocco is saying 26 is correct answer

Related Questions

which data type can store  64 bit value ?

  • [A] double
  • [B] int
  • [C] long
  • [D] float

What is the range of data type int in Java?

  • [A] -128 to 127
  • [B] -32768 to 32767
  • [C] -2147483648 to 2147483647
  • [D] None of the mentioned