Monday, July 27, 2009

). which of the following is TRUE?

a)In java, an instance field declared public generates a compilation error.


b)int is the name of a class available in the package java.lang


c)Instance variable names may only contain letters and digits.


d)A class has always a constructor.


e)The more comments in a program, the faster the program runs.

). which of the following is TRUE?
I think c is true becuse a varible name can not contain any thing other than lettera and digit if you add _ in letters.


But a class may not have constructor when default constructor will be used.
Reply:D is True.
Reply:D.


No comments:

Post a Comment