Differentiate undefined value and NULL value?

 Posted by Kmandapalli on 2/5/2014 | Category: ASP.NET Interview questions | Views: 1210 | Points: 40
Answer:

Undefined value: If a value that is not defined and has no keyword then it is known as undefined. For example in the declaration, int num; the num has undefined value.
Null value: If a value that is explicitly specified by the keyword ‘null’ then it is known as null value. For example in the declaration, String str=null; the str has a null value.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response