What's the difference between Void and no parameter?
问题 I have a class which defines two overloaded methods public void handle(Void e) protected void handle() Obviously they are different, especially handle(Void e) is public . What's the difference between those two? How to call the first method? I am using handle(null) - is this correct? 回答1: The first function is a function of a single argument, which must be provided and can only validly take the value null . Any value other than null will not compile. The second function doesn't take any