Donate a Test Question

Anyone is allowed to donate a test question. The contents may be censored later by webmaster. If you think your question is cool and don't want others to see it before censoring, please send email to javacamp. If your machine doesn't have an email client to use, please contact us via this link.

Note: The smaller letters questions means that the question & answer has not been censored.


This site will not be funational any more. It has been attacked by hackers

The source : UI CS quiz about java IO
Question :
Java has many class name ending with reader or writer like StreamReader, InputStreamReader, etc. 
The readers have methods that can read and return floats and doubles. True or False.
A. True
B. False
B would be correct. Because these readers and writers only deal with character I/O. 
It is not possible for these methods to return floats or doubles.

The source : A book
Question :
public void paint(Graphics g) {    
   g.drawOval(100,100,44);
}
A. A circle at(100,100)with radius of 44
B. A circle at(100,44) with radius of 100
C. A circle at(100,44) with radius of 44
D. The code does not compile.
Answer would be D. Because one more variable is needed to draw an oval.

The source : Somewhere
Question :
Which of the following may contain a menu bar?
A. a panel
B. a frame
C. an applet
D. a menu
The answer would be B.