You generate Java source files from the classes and interfaces of a model. A separate file, with the file extension .java, is generated for each class or interface that you select from the model. A generation log file is also created at the same time. You can only generate Java files from one model at a time.
A Java source can contain several classes, whereas a Java .class can contain only one class. You can compile the .java class files that you generate from an OOM in any Java compiler tool and run your Java application.