Java prototype