2、D.ints=36;while(s);--s;2:Whichmethodyoudefineasthestartingpointofnewthreadinaclassfromwhichnewthethreadcanbeexcution?A.publicvoidstart()B.publicvoidrun()C.publicvoidrunnable()D.publicstaticvoidmain(Stringargs[])3:What will be the result of executing the f
3、ollowing code? // Filename; SuperclassX.java package packageX; public class SuperclassX { protected void superclassMethodX() { } int superclassVarX; } // Filename SubclassY.java 1.package packageX.packageY; 2.
4、 3.public class SubclassY extends SuperclassX 4.{ 5.SuperclassX objX = new SubclassY(); 6.SubclassY objY = new SubclassY(); 7.void subclassMethodY() 8.{ 9.objY.superclassMethodX(); 10.int i; 11.i = objY.superclassVarX; 12.}
7、ptionatline11D.Noneofthese4:public class OuterClass { private double d1 = 1.0; //insert code here } You need to insert an inner class declaration at line 3. Which two inner class declarations are valid? publicclassOuterClass{privatedoubled1=1.0;//in