Some misc java basics