Core Java Code