在Java中,哪些重载将被选择为NULL?
如果我用Java编写这一行:
JOptionPane.showInputDialog(null, "Write something");
哪种方法会被调用?
showInputDialog(Component parent, Object message)
showInputDialog(Object message, Object initialSelectionValue)
我可以测试一下。但在其他类似的情况下,我想知道会发生什么。
米琪卡哇伊
慕神8447489
相关分类