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

jar cvfm d00.jar d00.mf *.class

java -jar d00.jar

or

java -classpath d00.jar

or

jar xvf d00.jar

java D00
      • D00.java | d00.jar | d00.mf
        [ multiple classes all in their own file in an 'unnamed package' ]
        [ jar with user 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