Is null a keyword

The null value is not a keyword.

Showing Answers 1 - 34 of 34 Answers

sachin

  • Jul 16th, 2005
 

null is a key word 
Please justify your answer

  Was this answer useful?  Yes

K Rajesh Achary

  • Jul 22nd, 2005
 

According to the Java Language Specification, null, true, and false are 
technically literal values (sometimes referred to as manifest constants) and not keywords.

hema

  • Aug 3rd, 2005
 

According to Java null is a key word literal. 
So are true and false.They cannot be used as variable names even though they are not keywords.

  Was this answer useful?  Yes

Nirav

  • Aug 17th, 2005
 

null, true and false are literal values and not keyword. even though they are not keywords, they cannot be used as variable because they are actual values. if u were to use null as variable, it would be like writing that 5 = 0, where 5 is a variable and 0 is a value

Sandeep Katiyar

  • Aug 30th, 2005
 

null is not a keyword in java.

Jai

  • Sep 12th, 2005
 

null is a keyowrd

  Was this answer useful?  Yes

pearlisan

  • Sep 18th, 2005
 

The null is not a keyword. But it is used by the JVM while an variable reference the blue print(I mean Classes), till an object created using the "classname varname=new classnameconstructor".

Dave W

  • Sep 19th, 2005
 

language lawyers :)does it matter if it's a keyword or a reserved literal value ? Maybe mattersto a compiler implementors so they can decide what to do with it, but to joe programmer,it's a value you can't mess with. You certainly won't be able to int null=5 ; or public null() {......}.Those who split hairs are the people you don't want to work for ! (javac developers exluded:)

  Was this answer useful?  Yes

Vijay

  • Sep 21st, 2005
 

'null' is a value, which can be assigned to a reference object. It specifies the reference object has no object instance associated to it. In Java 'null' is a reserved word that can not be used as identifer, and null means nothing or no value. 'null' is the default value all the uninitialized static & non-static reference objects.

  Was this answer useful?  Yes

arijit

  • Sep 28th, 2005
 

null is a keyword in java but it contains values such as true and false

so can we treat it as a data type?

please advice

  Was this answer useful?  Yes

Sushant

  • Oct 10th, 2005
 

NULL is a final variable.  If you want to test this try doing like this

null = null;

Now compile !!!

You will get the answer.

  Was this answer useful?  Yes

Sujit

  • Mar 3rd, 2006
 

(null,true,false) are not keywords but are reserved words so we cannot use them as names.

  Was this answer useful?  Yes

krishna

  • Mar 5th, 2006
 

According to java language specification null is not a keyword

ramu

  • Mar 10th, 2006
 

null is an literal ,not an keyword

  Was this answer useful?  Yes

dvs

  • Mar 14th, 2006
 

NO null is not a key word

  Was this answer useful?  Yes

santi

  • Aug 1st, 2006
 

 in java "null" is not a keyword,its a reservedword.

null means nothing or null value.

  Was this answer useful?  Yes

anu

  • Sep 26th, 2007
 

"null" is not a keyword according to 'JAVA'. It is one of option like "true/false".

  Was this answer useful?  Yes

...true, false, and null might seem like keywords, but they are actually literals; you cannot use them as identifiers in your programs.[1]
[1]:http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html

  Was this answer useful?  Yes

Himanshu chauhan

  • May 26th, 2018
 

False

  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