📜  OCA 考试题 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:28.583000             🧑  作者: Mango

代码示例1
public class Main{ 
           private int i = 1; 
           public static void main(String argv[]){ 
              int i = 2; 
              Main s = new Main (); 
              s.someMethod(); 
           } 
           public static void someMethod(){ 
              System.out.println(i); 
           } 
         }