Single Choice Not Set

QWhat will be the output for the below code ?
1. public class Test{
2.       public static void main(String[] args){
3.             byte i = 128;
4.             System.out.println(i);
5.       }
6. }

ID: #2024 Java Data Types and Variables - MCQ 686 views
Question Info
#2024Q ID
Not SetDifficulty
Java Data Types and Variables - MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 128
  • C Compilation fails with an error at line 3
  • D None of these
Correct Answer

Explanation

Compilation fails with an error at line 3

Share This Question

Challenge a friend or share with your study group.