+ 3
Why every code that has to be executed in java is written inside a class?
3 Respuestas
+ 5
please check google before posting new question, it will be helpful to community
https://stackoverflow.com/questions/4364327/why-all-the-java-code-is-packed-in-classes
+ 5
Because java is a OOP.
OOP: Object Oriented Programming
Every language has its own way and syntax. Java is so because java developers made it so.
+ 4
Every programming language has its own rules and that is something we have to find out and accept as they are.