CCL Home Page
Up Directory CCL t013.html
slide

Jan K. Labanowski: "Tomcat, servlets, JSPs and other friends"

Java

Object oriented language (i.e., classes which contain data and methods) similar to C++. However, some dangerous C++ constructs removed (pointers, memory allocation/deallocation, multiple inheritance, operator overloading).

Java is platform independent (write once, run anywhere [where Java runs]).

  • Compile Java source code to a bytecode:
    javac MyJavaThing.java
    which will produce a class file MyJavaThing.class with bytecode. Bytecode can be executed on any Java supported platform. Compiler javac is available free from Sun Microsystems Web site: http://www.javasoft.com as a part of J2SDK (Java 2 Software development Kit).
     
  • Execute the bytecode with the Java Virtual Machine (JVM) as:
    java MyJavaThing
    JVM (java) comes as a part of Java Runtime Environment (JRE). If your class was an applet or a servelet, you need to execute it with another tool (browser, or applet viewer, in case of applet, and the servlet container, in case of servlets).

Modified: Tue Feb 12 20:35:26 2002 GMT
Page accessed 3553 times since Tue Feb 4 15:05:13 2003 GMT