CCL Home Page
Up Directory CCL t009.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: Mon Feb 11 20:11:55 2002 GMT
Page accessed 326 times since Wed Apr 13 16:32:58 2011 GMT