FeedBack Form

Your Name :
Your Email :
Your Location :
Your Message :
   
FeedBack

Java Basic Mcq Questions and Answers

25. Which one of the following methods cannot be used to draw the outline of a square?
 
  • A. Draw line( )
  • B. Draw react ( )
  • C. Draw polygon ( )
  • D. Draw string( )
Answer: D.
Draw string( )
 
26. The thread may be in
 
  • A. Various waiting states
  • B. Ready state
  • C. Running state
  • D. All of these
Answer: D.
All of these
 
 
27. The methods wait ( ) and notify ( ) are defined in
 
  • A. Java. Lang. thread
  • B. Java. Lang. string
  • C. Java. Lang. thread group
  • D. Java. Lang. object
Answer: D.
Java. Lang. object
 
28. For the method that does not return a value, the keyword used is
 
  • A. Boolean
  • B. Void
  • C. Null
  • D. Short
Answer: B.
Void