【正文】
9。digit{ args[]) voidpublic followingexecutingresultbe}} Choices: : 2 : 3 : 7 : 8 12: What (x + y + ++x)。public static void main(String args[]){ x。What will happen when you attempt to pile and run the following code? public class Static{static{int x = 5。Choices: ++x。x++y{ myMethod() static} ++ { args[]) voidpublic int} =int{ static{ Static public followingrunpileattemptwhenwill (a)。 a=null。 b=new String(“game over”)。Give the following method: public void method( ){ String a,b。collection.beelibileisatheearliestisoptimization,ofthe}(a)。a=b。a=null。(a+b+”ok”)。over”)。b=newworld”)。a=newa,b。){ voidmethod: the = du。 = (DrivingUtilities)myTruck。 fw。 o。 6. o = null。 4. object [] oa = new object [1]。collection?for3,inobjecttheWhen 9. =7. =6. oa[0]=[1]。newoaobject()。newo3.{ ()object2.{ class Select the right answer: 8: 1. d = 。//rest of class body…}Assuming that x invoked by the code java Example, which statement can made x be directly accessible in main() method of ? private int x to public int x private int x to static int x private int x to protected int x private int x to final int x 5:Which of the following statements are not legal? l = 4990。ofmain()accessiblebemadestatementExample,codebyxAssuming} body… ofx。privateExample{ class}}Which well be output: it for l is 3 it for l is 1 it for l is 2 it for l is 0 4: Givedo{(“Doing it for l is:”+l)。output:well(“Finish”)。}while(l0) litl=0。