In Java we run classes, not programs - Meaning -
In Java we run classes, not programs - Meaning -
i inquire sentence: "in java run classes, not programs". correct? know build process, seems me sentence ambiguous
(as wide-open, let's create reply community wiki...)
i've never heard (and argue it's vague , misleading should ignore it).
without context, it's hard too specific it's meant mean, relates fact many of ways java programs run involve specific class starting point.
for instance, if you're running boring old programme command line:
java dosomething...that's saying run main
method in dosomething
class.
similarly, in executable jar file, manifest in jar says class run main
from.
similarly, servlet identified specific class implementing appropriate interface , set in java ee container's configuration.
but again, it's odd thing say, not to the lowest degree because although entry point may single class, of course of study class ends using others work done.
java
Comments
Post a Comment