java ok, cpp not implement