Cpp Function Declared Without Formal Parameter In Java