- 1

Error in the code!!!

do is a language reserved word so, it can not be a class, method, object name. If you run this code it will not compile. The answer should be B only if instead of do you name the class, object etc with anything other name.

4th Nov 2016, 1:44 PM
RODNEY MARTINEZ ALONSO
2 Réponses
0
"do" may do something in other languages, but in Java it has no purpose.
16th Nov 2016, 5:32 AM
Abir Mohammad Razzak
Abir Mohammad Razzak - avatar
0
Running that code in the Code Playground, it doesn't compile. I think "do" is a reserved work. Ex: do {} while ();
17th Jan 2017, 10:30 PM
Clarice Ross