Email
Chat with tutors
logo

Ask Questions, Get Answers

X
 
Answer
Comment
Share
Q)

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


( A ) 15
( B ) Run time error
( C ) Compile time error
( D ) 5

1 Answer

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