0

I have created a class named customer. Does that make any difference whether i make it inside the main or outside it?

https://code.sololearn.com/c39A1751A5a2 I have tried both and couldn't see any difference. ya, my code is like that, giving no output.

1st Jun 2021, 2:43 PM
Jagadeesh Gurana
Jagadeesh Gurana - avatar
2 ответов
+ 2
Your code is outside the executable environment. System executes just static method main and this is empty.No code to run.
1st Jun 2021, 3:24 PM
Highman
Highman - avatar