The following fraction of code double STATIC = 2.5 ; System.out.println( STATIC ); ?

Software Engineering Mcqs

The following fraction of code double STATIC = 2.5 ; System.out.println( STATIC ); ?

(A)  Prints 2.5

(B)  Raises an exception

(C)  Raises an error as STATIC is used as a variable which is a keyword

(D)  None of these



Share this... Share on Facebook
Facebook
Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin
Share on Whatsapp
Whatsapp

  • IF YOU THINK THAT ABOVE POSTED MCQ IS WRONG.

  • PLEASE COMMENT BELOW WITH CORRECT ANSWER AND ITS DETAIL EXPLANATION.

  • Related Mcqs


    Leave a Reply

    Your email address will not be published. Required fields are marked *