Email
Chat with tutors
logo

Ask Questions, Get Answers

X
 
Answer
Comment
Share
Q)

class A { final int a; public void set() { a = 10; System.out.println(a); } public static void main(String[] a) { (new A()).set(); } } // what is the output ?


( A ) 10
( B ) null
( C ) Compile time error
( D ) Run time error

1 Answer

Home Ask Tuition Questions
Your payment for is successful.
Continue
...