Yurttas/PL/OOL/Java/F/02/08/D/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 - package - unnamed[default]
javac D00.java

jar cvf D00.jar *.class

java -classpath D00.jar D00

or

jar xvf D00.jar

java D00
      • D00.java | D00.jar
        [ multiple classes all in their own file in an 'unnamed package' ]
        [ jar without user provided manifest file ]
      • D.java
        [ public class with access modifiers explicitly given ]
      • DD.java
        [ public class with access modifiers explicitly given ]
      • DDD.java
        [ public class with access modifiers explicitly given ]
        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