Why both the if condition and the else condition are executed?

前端 未结 0 581
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-19 09:29

I use jdk1.8 and this code to do a test:

public class My{
    public static void main(String[] args) {
        if (args == null || new My() {{
            My.main         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题