2、2:Whichmethodyoudefineasthestartingpointofnewthreadinaclassfromwhichnewthethreadcanbeexcution?A.publicvoidstart()B.publicvoidrun()C.publicvoidrunnable()D.publicstaticvoidmain(Stringargs[])3:What will be the result of executing the following code? // Filename; SuperclassX.ja
3、va package packageX; public class SuperclassX { protected void superclassMethodX() { } int superclassVarX; } // Filename SubclassY.java 1.package packageX.packageY; 2. 3.public class SubclassY extends SuperclassX 4.{ 5.Superclass
6、{9.objY.superclassMethodX();10.inti;11.i=objY.superclassVarX;12.}13.}Choices:A.Compilationerroratline5B.Compilationerroratline9C.Runtimeexceptionatline11D.Noneofthese4:public class OuterClass { private double d1 = 1.0; //insert code here } You need to insert an inner class
7、declaration at line 3. Which two inner class declarations are valid? publicclassOuterClass{privatedoubled1=1.0;//insertcodehere}Youneedtoinsertaninnerclassdeclarationatline3.Whichtwoinnerclassdeclarationsarevalid?A.classInnerOne{publicstaticdoublemethoda(){returnd1;}}B.public