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

Useful One-line Scripts for sed

14.09.2007 at 14:46 (Programming, sed)

Handy sed oneliners:

English     German

Update:

Return 1st Line
sed -n ‘1p’ file

Return all except 1st line
sed ‘1d’ file

Permalink Kommentar schreiben

Interactive Linux Kernel

20.08.2007 at 19:18 (Kernel, Linux, Programming)

The Linux kernel contains over 5 mio lines of code spread over hundreds of files. Lets say if you want find the sys_fork function, you can easily navigate sys_fork link and you got it.

You can navigate with the mouse:

  • wheel-zoom
  • drag-move
  • keywords-links

Linux Kernel

Have fun with the interactive linux kernel map!

Permalink Kommentar schreiben

Oracle Instance Menu depend on oratab

15.08.2007 at 20:40 (10g, DBA, HPUX, KSH, Oracle)

This ksh script creates a menu with the content of the oratab. Hence you can select an Oracle instance, and the script login as sysdba.

preview Menu

Written and tested for:

  • HPUX
  • Oracle 10gR2 Instances
  • ASM non RAC

Enjoy and have fun!

View script

Permalink Kommentar schreiben