πŸ“Š JAVA
Q. What will be output of the following program code?
Code:
public class Test{
	public static void main(String[] a){
		short x = 10;
		x = x*5;
		System.out.print(x);
	}  
}
  • (A) 50
  • (B) 10
  • (C) Compilation Error
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (C) Compilation Error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
241
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Prabhas Kapoor
Publisher
πŸ“ˆ
99%
Success Rate