【单选题】如下代码运行之后结果为: public class StaticTest { static int i; public void showI() { System.out.println(++i); } public static void staticShowI() { System.out.println(++i); } public static void main(String[] s) ...
【单选题】When is the text “Hi there”displayed?( ) public class StaticTest { static { System.out.println(“Hi there”); } public void print() { System.out.println(“Hello”); } public static void main(String args...
A.
Never.
B.
Each time a new object of type StaticTest is created.
C.
Once when the class is loaded into the Java virtual machine.