Java

From Oracle FAQ
⧼orafaq-jumptonavigation⧽⧼orafaq-jumptosearch⧽
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

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

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

Use the javac utility to compiler a java program:

javac Hello.java

Running Java programs

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

java Hello World

Also see

External links