Difference between undefined value and null value

          

Difference between undefined value and null value

<<Previous  Next>>
JavaScript - What is the difference between undefined value and null value? -  March 02, 2009 at 18:00 PM by Vidya Sagar

What is the difference between undefined value and null value?

Undefined value: A value that is not defined and has no keyword is known as undefined value. For example in the declaration, int number; the number has undefined value.

Null value: A value that is explicitly specified by the key word ‘null’ is known as null value. For example in the declaration, String str=null; the str has a null value. The keyword ‘null’ is used here.

JavaScript - What is the difference between undefined value and null value?  -  Aug 16, 2009 at 13:40 PM by Amit Satpute    

What is the difference between undefined value and null value?

null value has keyword called ‘null’. That is not the case with undefined.

typeof undefined variable or property returns undefined whereas
typeof null value returns object.

<<Previous  Next>>
What is finalize()? Is finalize() similar to a destructor?

The finalize() method of java is invoked by JVM to reclaim the inaccessible memory location, When the ‘orphan’ object (without reference) is to be released, JVM invokes the finalize() method, when the next.................

Why does Java have different data types for integers and floating-point values?

The integer and floating-point types are different in terms of the consumption of the bits which represent them. There are certain data types which are rightly apt for speed..............

What is chained exceptions in java?

Once an application finds an exception, responds an exception by throwing another exception. It causes another exception. Knowing an exception that causes another exception is very useful..................... .

Write your comment - Share Knowledge and Experience


 

 
Interview questions
 
Home | Want a Job? Submit Key Skills | Employer login | My key skills | About us | Sitemap | Contact us