JAVA-JAVA-100-Tests-Answers--Explanations-Pass-Final-Exam-Job-Interview-Exam-Engineer-Certification-Exam-Exami
"The Java 100 Tests, Answers & Explanations" is a useful book for beginners. This book can help you to:
Pass the final examination;
Pass the job interview examination;
Pass the engineer certification examination;
From this book, you can test:
Java Basic; Control Statement; Array; Function; If, Switch statement; For, While loop; Class, Object, Method & Interface; String & StringBuffer; Exception; Input & Output
€¦€¦
Table of Contents
Chapter 1 Java Basic
Chapter 2 Control Statement, Array, Function
Chapter 3 Class, Object, Interface & Method
Chapter 4 Class, Object, Interface & Method
Chapter 5 Class, Object, Interface & Method
Chapter 6 String & StringBuffer
Chapter 7 Exception
Chapter 8 Input & Output
Conclusion
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 : €¦€¦
Explanation: €¦€¦
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.
Answer: €¦€¦
Explanation: €¦€¦