Is 'null' a keyword?
Answers were Sorted based on User's Feedback
Answer / ranganathkini
No "null" is not a keyword of the Java Programming Language,
it is a reserved keyword similar to "true" and "false"
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / aruna
"null" is a reserved keyword similar to "true" and "false"
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / george
"null" is a reserved keyword similar to "true" and "false"
we can use null to initialize string..
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / ejp
RE answer #1, how can it be not a keyword and a reserved
keyword?
Do try to make sense.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / yogesh mudgil
In case of Java,null is a literal.null is a special literal
which can be cast to any reference type but not to any
primitive type.It is used in Java to represent a void
reference i.e. a pointer to nothing.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sudhakar
"Null" is not either not a key word nor a reserved word
| Is This Answer Correct ? | 0 Yes | 0 No |
Does A Class Inherit The Constructors Of Its Superclass?
What are the two types of java programming?
How many bytes is double?
How you can force the garbage collection?
What is a class instance variable?
What is super in java?
Can we define static methods inside interface?
public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?
Are nested try statements are possible?
how we can create packages in java?
Can we serialize static variables in java?
What is an object in java?