Java Versions
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
Inheritance and Interface in 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 {}
Eclipse with Oracle JDBC
Follow this steps to use Eclipse with an Oracle JDBC Driver.
- Download the Oracle JDBC Driver (Interoperability Matrix)
- Classpath must include the location of the Driver (.jar file)
OR
Save it in:JAVA_HOME/jre/lib/ext/ - Now let’s code… example
- 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
