Java Versions

10.07.2008 at 20:04 (JAVA, JDK 6, Programming)

Sometimes you read JDK 6.0 or JDK 1.6. So where is the difference?

JDK 6.0 is the product version whereas JDK 1.6 is the developer version.

Source: http://java.sun.com/javase/6/webnotes/version-6.html

Permalink 1 Kommentar

Inheritance and Interface in Java

04.02.2008 at 15:23 (JAVA)

Here are some possibilities of how to use and mix inheritances and interfaces in Java.

implements: implements an interface to the class
extends: extends the subclass from the superclass

interface Ione {}
interface Itwo {}
interface Ithree extends Ione {}
interface Ifour extends Ione, Itwo {}
class Cone {}
class Ctwo extends Cone {}
class Cthree implements Ione {}
class Cfour extends Cone implements Ione {}
class Cfive extends Cone implements Ione, Itwo {} 

Permalink Kommentar schreiben

Eclipse with Oracle JDBC

16.01.2008 at 18:43 (JAVA, JDBC, Oracle, Programming)

Follow this steps to use Eclipse with an Oracle JDBC Driver.

  1. Download the Oracle JDBC Driver (Interoperability Matrix)
  2. Classpath must include the location of the Driver (.jar file)
    OR
    Save it in:JAVA_HOME/jre/lib/ext/
  3. Now let’s code… example
  4. Rename to DBconnect.java and adapt the parameters for DriverManager.getConnection
C:\>javac DBconnect.java
C:\>java DBconnect
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
PL/SQL Release 10.2.0.3.0 - Production
CORE	10.2.0.3.0	Production
TNS for HPUX: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production

Permalink Kommentar schreiben

JDK 6 Documentation

20.09.2007 at 10:46 (JAVA, JDK 6, Programming)

Here you can get the JDK 6 Documentation with a nice overview JRE, JDK and Java SE AP

Java at a Glance



Permalink Kommentar schreiben