Q. The following fraction of code

Code:
double STATIC = 2.5 ;
System.out.println( STATIC );
  • (A) Prints 2.5
  • (B) Rraises an error as STATIC is used as a variable which is a keyword
  • (C) Raises an exception
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (A) Prints 2.5

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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