line 1- declaring an "int a;" in X() it's allowed and since its declaration it would just shadow, only inside X(), the instance variable with the same name.
If the incorrect code is removed the app will print:
040
4000
|
Oracle Certified Professional Java Programmer
Author:
JavaChamp TeamSenior Java Developer
QuizOver.com
Germany
Access: |