πŸ“Š JAVA
Q. Find the output of the following program.
Code:
public class Solution{
       public static void main(String[] args){
                     short x = 10;
                     x =  x * 5;
                     System.out.print(x);
       }
}
  • (A) 50
  • (B) 10
  • (C) Compile error
  • (D) Exception
πŸ’¬ Discuss
βœ… Correct Answer: (C) Compile error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
380
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Chandrakant
Publisher
πŸ“ˆ
81%
Success Rate