0
Не не не [not answered] Method implementation
Firstly, the code doesn't compile here but does compile in my PC. That's outstanding. Maybe I will remove Russian lang characters. Secondly, is it possible to implement the method which is marked as a comment? Access modifiers really hurt my brain. Help, please:) https://code.sololearn.com/c6Sx0C18ue7W/?ref=app
3 Respuestas
+ 4
Comments can be executed. Use Unicode characters for that, as shown below.
// the line below this gives an output
// \u000d System.out.println("comment executed");
But this won't work in code playground. Try it in your PC.
0
A simpler question. Can we declare objects of classes somewhere else out of the main(String[]args)?
0
@Krishna
Sorry, I meant the method marked as the comment in the code attached :)