"The Java 100 Tests, Answers & Explanations" is a useful book for beginners. This book can help you Pass the final examination; Pass the job interview examination; Pass the engineer certification examination;
From this book, you can Java Basic; Control Statement; Array; Function; If, Switch statement; For, While loop; Class, Object, Method & Interface; String & StringBuffer; Exception; Input & Output ……
Test example 1: 11. Which following line is not correct? import java.util.Date; // line1 package myPackage; // line2 class myClass1 extends Date{…} // line3 class myClass2 extends Date{…} // line4 A.line1 B.line2 C.line3 D.line4 Answer : …… ……
Test example 2: 5. What is the output in the following code? FileInputStream in=new FileInputStream(“myfile.java”); byte b[ ]=new byte[10]; int d=in.read(b); System.out.print(d); A.10 B.20 C.not sure. D.compile failure. …… ……