Java

From Oracle FAQ
Jump to: navigation, search
The Java logo.

Java is a multi-platform, object-oriented programming language from SUN Microsystems. The Java language syntax is somewhat similar to that of C. Java can be used to program applications and applets.

PS: Don't confuse Java with JavaScript.

Oracle support[edit]

Oracle Supports Java via JDBC and SQLJ interfaces. Oracle's GUI development environment (IDE) for Java Developers is JDeveloper. TopLink is an Oracle product that can map relational database objects to Java objects.

Sample Java program[edit]

Put the following sample code in a file called Hello.java:

public class Hello {
    public static void main(String[] args) {
        for (int i=0; i < args.length; i++) {
            System.out.println("Hello " + args[i]);
        }
    }
}

Compiling Java programs[edit]

Use the javac utility to compiler a java program:

javac Hello.java

Running Java programs[edit]

Start our "java" program (Hello) and pass some arguments to it (World):

java Hello World

Also see[edit]

  • JavaVM - Java in the database
  • JDBC - Java DB connectivity
  • SQLJ
  • JDeveloper - IDE for writing Java programs
  • TopLink - Java object relational mapping product

External links[edit]