Java Function Pointers In Cpp