πŸ“Š JAVA
Q. What will be the output for the below code ?
Code:
public class Test
  { 
       public static void main(String[] args)
  {
       byte i = 128;
       System.out.println(i); 
       } 
 }
  • (A) 128
  • (B) 0
  • (C) Compilation fails with an error at line 3
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (C) Compilation fails with an error at line 3

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
192
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Sandeep
Publisher
πŸ“ˆ
82%
Success Rate