+ 1
Can we build software using java without using our own classes and relying solely on java libraries?
5 Antworten
+ 3
Some of these questions though. You need a class that will contain a main method.
+ 2
No!
You'd need at least one class of your own
+ 1
Yes, by using another language
+ 1
Java requires a class that includes a main method to be able to compile, but you can write a program that only has that one class. In multi class apps, you dont have to create an object of every class you create. Look up static in one of the first few lessons, it helped me on this point.
0
okay ..I think you guys got it wrong.. I know I need a single class for Java compiling and execution.. my question is that is it necessary to follow OOP or procedural programming is enough to build a software ?