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.

Contents

[edit] 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.

[edit] 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]);
        }
    }
}

[edit] Compiling Java programs

Use the javac utility to compiler a java program:

javac Hello.java

[edit] Running Java programs

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

java Hello World

[edit] Also see

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

[edit] External links