Feeds:
Posts
Comments

Archive for the ‘Java’ Category

To have Eclipse use a particular Java VM :
Edit the eclipse.ini file and add the vm argument below the line org.eclipse.platform
-vm /absolute/path/to/your/java/executable
I’ve found this particularly useful on Windows when I’ve installed and removed various versions of JDK and eclipse appears completely lost and confused.

Read Full Post »

versus

Run time polymorphism vs. Compile time polymorphism
Overriding is polymorphism. Obvious enough. But how the heck is Overloading polymorphism? Which Overloaded method is called isn’t decided at runtime, that is already determined at compile time.  So is Overloading polymorphism simply because, although the signatures vary all over the place, the method name is the same?
Abstract classes [...]

Read Full Post »

basic oo concepts

Is Java pure OO? Not exactly, since primitives are not implemented as objects. Smalltalk for example, is purely OO.

Abstraction:

- Extract all the common attributes and behaviour for a given set of classes and move them one level up and that will be your first level of abstraction.
- [...]

Read Full Post »

insider humour

A long time ago, I’d come across (in Reader’s Digest, I think) these :
Two atoms are sitting at a bar. One is looking really downcast.
“I think I have lost an electron”.
“Are you sure?”
“I’m positive.”
A neutron walks into a bar, asks for a stiff one, swigs it down in one gulp and asks the bartender “How [...]

Read Full Post »