A class is declared by use of the ________ keyword.

A) Object
B) Class
C) Instance
D) None of the above

Showing Answers 1 - 14 of 14 Answers

Vickey

  • Nov 28th, 2006
 

I completely Diasgree with Sandeep ... He asked that What is the Keyword for Defining a Class ... "Class"  is the Keyword used to define a class

So the Answer is : B

class Example

in the above class is the Keyword and Example is the classname

  Was this answer useful?  Yes

lguzinski

  • Apr 17th, 2007
 

sandeep is absolutely right. Java is a case sensitive language, class and Class are two VERY different things.


Class is a data type, an actual class, defined for the Reflection API. The keyword is actually 'class'.

  Was this answer useful?  Yes

sneh lata

  • Sep 15th, 2007
 

A class is declared with "class" keyword not "Class" keyword.
Class is a predefined class which is used to load other classes.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions