Friday, July 31, 2009

Some basic java questions?

I have this Comp Science assignment to do, and am not sure about some of the questions on it, so if anyone could help that'll be awesome





Which of the following indicates that a method does not return a value?


a. void


b. double


c. float


d. public





An object stores its data in


a. instance fields


b. methods


c. access specifiers


d. files





which of the following statements invokes the javadoc utility from a command shell?


a. javadoc *.java;


b. javadoc MyClass


c. javadoc *.java


d. javadoc MyClass.java;





use of an instance field name in a method denotes the instance field of the


a. access specifier


b. implicit parameter


c. parameter variable


d. explicit paramet





instance fields are sometimes called


a. garbage collectors


b. parameter variables


c. local variables


d. instance variables





___ indicates that a method does not return a value


a. static


b. public


c. void


d. private





thanks

Some basic java questions?
A1 a


A2 a


A3 d


A4 b


A5 d


A6 c


No comments:

Post a Comment