Yurttas/PL/OOL/Java/F/02/08/C/01/index page

From ZCubes Wiki
Jump to navigation Jump to search
Dr. Salih Yurttas - yurttas@zcubes.com
programming languages - design principles, implementation constructs
java

  1. class, package, jar, bean jar [with user manifest] - package - unnamed[default]
javac C00.java

jar cvfm c00.jar c00.mf *.class

java -jar c00.jar

or

java -classpath c00.jar

or

jar xvf c00.jar

java C00
    • C00.java | c00.jar | c00.mf
      [ multiple classes all in their own file in an 'unnamed package' ]
      [ jar with user manifest file ]
    • C.java
      [ public class ]
    • CC.java
      [ public class ]
    • CCC.java
      [ public class ]
      default package - possible but not useful in software engineering context of libraries and
      component-based software development

java as a pure oo language << 2 >> exceptions | 4 | 5 | 6 | 7 | 8 | 9