Saturday, June 03, 2006

Stack Overflow? Not so fast

class Foo
{
Foo()
{
this("bar");
}
Foo(String s)
{
this();
}
}
public class TestFoo
{
public static void main()
{
Foo f=new Foo();
}
}

Hmm i was really eager to get a C'tor loop going to get the stack to overflow, after reading about Contructors in the java cert book by KS and BB . But the Compiler caught a recursive C'tor call at compile time. So i never got to the point where an ambiguous runtime call to Object's super() would cause a stack overflow. Smart Compiler

Friday, June 02, 2006

Jet Ski 'ing on Lake Lewisville


Went Jetskiing last weekend at Lake Lewisville in Dallas. It was awesome. A very Windy day lots of waves and traffic on the water and it was the first time i had jet skied. When you are ripping the waves all by yourself on a jetski, you literally bounce off every wave you hit. It gives you a high. Turning has to be done in wide arcs, ( the sequential left brain sort of assumes that you can make turns because you have a handle to do so) you have to get used to the training. Anything with speed thrills especially if its on the water!!! i look forward to doing this on the Ocean.