Yurttas/PL/OOL/Java/F/02/08/H/00/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
    1. jar [default manifest] - named packages - apple.a00, banana
javac H00.java

jar cvf H00.jar H00.class apple banana

java -classpath H00.jar H00

or

jar xvf H00.jar

java H00
      • H00.java | H00.jar
        public class importing from package apple.a00 and package banana
        [ jar without user provided manifest file ]
      • HA.java
        [ public class in 'package apple/a00' ]
      • HB.java
        [ public class in 'package banana' ]
        named packages [user-defined] - apple.a00, banana
        this is a proper way of packaging for reusable components
        with libraries and component-based software development

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