6 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 346
Correct 58
Incorrect 132
Viewed 156

Answers

Guest
Guest
Salah Eddine
Salah Eddine - 14 hours ago

Salah Eddine from Casablanca, Morocco is saying 32 is correct answer

Bharath
Bharath - 2 months ago

Bharath from Hyderabad, India is saying 26 is correct answer

Abdulrahman Hayatu usman
Abdulrahman Hayatu usman - 3 months ago

Abdulrahman Hayatu usman from Abeokuta, Nigeria is saying 64 is correct answer

jean-michel michel
jean-michel michel - 4 months ago

jean-michel michel from Toulouse, France is saying 32 is correct answer

Renuka Siriwardhana
Renuka Siriwardhana - 4 months ago

Renuka Siriwardhana from Colombo, Sri Lanka is saying 26 is correct answer

Related Questions

which value can not store character data type.

  • [A] Digit
  • [B] Special character
  • [C] String
  • [D] Letter

Short data type has a minimum value of……….. ?

  • [A] -32767
  • [B] -2,147,483,648
  • [C] -32768
  • [D] -127