+ 3

Why every code that has to be executed in java is written inside a class?

2nd Mar 2019, 4:50 AM
Bhavesh Panjwani
3 ответов
+ 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
2nd Mar 2019, 5:10 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 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.
2nd Mar 2019, 6:49 AM
Sarthak Pokhrel
Sarthak Pokhrel - avatar
+ 4
Every programming language has its own rules and that is something we have to find out and accept as they are.
10th Mar 2019, 3:41 AM
Dejan Dozet
Dejan Dozet - avatar