Wednesday, 11 March 2015

Java

I've studied many languages before,
but java was a real pain.
I didn't knew what to write
in public static void main().

Observe the syntax, begin to code,
Java says - "You're a liar".
There's depth in those concepts,
use appropriate access specifier.

I get very troubled,
in using 'super' or 'this'.
I feel falling in the clutches,
of the dark and deep abyss.

Logic never changes in any language,
but terms of java have hit my pride.
Before you write your methods,
learn to overload and override.

ArrayList, TreeSet and HashMap
are child classes of 'Collection',
but this is a different context,
there's also garbage collection.

Using 'Eclipse' didn't help
at my path to redemption.
I spent many a night,
resolving null pointer exception.

Debugging is such a worry
where errors don't leave a trace.
Should I 'extend' or 'implement',
in using a method of an interface?

Clearing the memory once allotted,
is a thought very wise.
In order to do it,
You must use - finalize().

Programs may run, they may not,
my friend, have no misconceptions.
They will run perfectly only when,
you've handled all exceptions.

And this was just the beginning,
there's JDBC, swings and thread.
And days of practice to be spent,
for the terms mentioned and unsaid.

© Rishabh Bidya