The8859-1charactercodefortheuppercaseletterAis65.Whichofthesecodefragmentsdeclareandinitializeavariableoftypecharwiththisvalue?()
A. charch=65;
B. charch=’¥65’;
C. charch=’¥0041’;
D. charch=’A’;
E. charch="A";
Whatwillbewrittentothestandardoutputwhenthefollowingprogramisrun?()publicclassQ03e4{publicstaticvoidmain(Stringargs[]){Stringspace="";Stringcomposite=space+"hello"+space+space;composite.concat("world");Stringtrimmed=composite.trim();System.out.println(trimmed.length());}}
A. 5
B. 6
C. 7
D. 12
E. 13
Whatwillbetheresultofattemptingtocompileandrunthefollowingcode?()publicclassQ6b0c{publicstaticvoidmain(Stringargs[]){inti=4;floatf=4.3;doubled=1.8;intc=0;if(i==f)c++;if(((int)(f+d))==((int)f+(int)d))c+=2;System.out.println(c);}}
A. Thecodewillfailtocompile.
B. 0willbewrittentothestandardoutput.
C. 1willbewrittentothestandardoutput.
D. 2willbewrittentothestandardoutput.
E. 3willbewrittentothestandardoutput.
GiventhatfileisareferencetoaFileobjectthatrepresentsadirectory,whichcodefragmentswillsucceedinobtainingalistoftheentriesinthedirectory?()
A. Vectorfilelist=((Directory)file).getList();
B. String[]filelist=file.directory();
C. Enumerationfilelist=file.contents();
D. String[]filelist=file.list();
E. Vectorfilelist=(newDirectory(file)).files();