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

Dr. Salih Yurttas - yurttas@zcubes.com
programming languages - design principles, implementation constructs
java

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

jar cvf C00.jar *.class

java -classpath C00.jar C00

or

jar xvf C00.jar

java C00
    • C00.java | C00.jar
      [ multiple classes all in their own file in an 'unnamed package' ]
      [ jar without user provided 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