null
/nŭl/
adjective
  1. Having no legal force; invalid.
    render a contract null and void.
  2. Of no consequence, effect, or value; insignificant.
  3. Amounting to nothing; absent or nonexistent.
    a null result.
from The American Heritage® Dictionary of the English Language, 5th Edition. More at Wordnik
String str = null;

means a String reference, named str, not pointing to anything

String str = "";

means a String reference, named str, pointing to an actual String instance. And for that String instance, it is a zero-length String, but it is still an actual object.


Just a little update with some diagram which hopefully can help you visualize that:

assume I have

String nullStr = null;
String emptyStr = "";
String myStr = "ab";

What it conceptually is something look like:

  // String nullStr = null;

  nullStr ----------> X    pointing to nothing



  // String emptyStr = "";
                      +------------------+
  emptyStr ---------> |       String     |
                      +------------------+
                      | length = 0       |
                      | content = []     |
                      +------------------+


  // String myStr = "ab";
                      +------------------+
  myStr ------------> |       String     |
                      +------------------+
                      | length = 2       |
                      | content = [ab]   |
                      +------------------+

(of course the internal structure of the String object is not the real thing in Java, it is just for giving you an idea)


More edit for the rationale behind NULL:

In fact in some language they do not provide concept of NULL. Anyway, in Java (or similar language), Null means semantically different from "empty" object. Use String as an example, I may have a People class with a String preferedTitle attribute. A Null preferedTitle means there is NO preferred title for that people (so that we need to derive and show the title for it, maybe), while a preferedTitle being an empty string means there IS a preferred title, and that's showing nothing.

Btw, although a bit off topic: concept of Null is seen as problematic for some people (because all those extra handling it need etc). Hence some languages (e.g. Haskell) are using some other ways to handle the situation where we used to use Null.

Answer from Adrian Shum on Stack Overflow
🌐
Merriam-Webster
merriam-webster.com › dictionary › null
NULL Definition & Meaning - Merriam-Webster
July 2, 2026 - Let’s be honest: null is kind of a nothing word. That’s not a judgment—it was literally borrowed into English from the Anglo-French word nul, meaning "not any." That word, in turn, traces to the Latin word nullus, from ne-, meaning "not," ...
Top answer
1 of 9
6
String str = null;

means a String reference, named str, not pointing to anything

String str = "";

means a String reference, named str, pointing to an actual String instance. And for that String instance, it is a zero-length String, but it is still an actual object.


Just a little update with some diagram which hopefully can help you visualize that:

assume I have

String nullStr = null;
String emptyStr = "";
String myStr = "ab";

What it conceptually is something look like:

  // String nullStr = null;

  nullStr ----------> X    pointing to nothing



  // String emptyStr = "";
                      +------------------+
  emptyStr ---------> |       String     |
                      +------------------+
                      | length = 0       |
                      | content = []     |
                      +------------------+


  // String myStr = "ab";
                      +------------------+
  myStr ------------> |       String     |
                      +------------------+
                      | length = 2       |
                      | content = [ab]   |
                      +------------------+

(of course the internal structure of the String object is not the real thing in Java, it is just for giving you an idea)


More edit for the rationale behind NULL:

In fact in some language they do not provide concept of NULL. Anyway, in Java (or similar language), Null means semantically different from "empty" object. Use String as an example, I may have a People class with a String preferedTitle attribute. A Null preferedTitle means there is NO preferred title for that people (so that we need to derive and show the title for it, maybe), while a preferedTitle being an empty string means there IS a preferred title, and that's showing nothing.

Btw, although a bit off topic: concept of Null is seen as problematic for some people (because all those extra handling it need etc). Hence some languages (e.g. Haskell) are using some other ways to handle the situation where we used to use Null.

2 of 9
4

String str is a reference to an object. That is, it's not an actual object, but a variable which can contain the address of an object. When you assign a value to str you are changing the address stored within and changing which object it addresses.

null is reference value which points to no object. It's about as close to nothing as you can get. If you assign null to a String reference (String str = null;), you cannot then invoke any method of String using that reference -- all attempts will result in NullPointerException.

"" is a character String which contains no characters -- zero length. It is still an object, though, and if you assign its address to your String reference variable (String str = "";) you can then take its length, compare it to another String, extract its hashCode, etc.

🌐
freeCodeCamp
freecodecamp.org › news › a-quick-and-thorough-guide-to-null-what-it-is-and-how-you-should-use-it-d170cea62840
A quick and thorough guide to ‘null’: what it is, and how you should use it
June 12, 2018 - It means that there is no value associated with name. You can also think of it as the absence of data or simply no data. Note: The actual memory value used to denote null is implementation-specific.
Discussions

What is Null?
NULL is nothing. It means theres nothing there. Often its just a place holder before something is there. Say u have a bunch of variables of animals. U might set them to NULL before u know what they are. Then u might check if they are NULL before u add an animal to them. Things are initialized as NULL. More on reddit.com
🌐 r/learnprogramming
60
34
July 5, 2024
tsql - How can I explain the difference between NULL and zero? - Software Engineering Stack Exchange
We don't have enough information ... different meaning than nothing, which infers there is no value to be had. Depending on the context of the discussion, either explanation can be correct. ... When talking to you boss, just use 0 for zero, and ? for null.... More on softwareengineering.stackexchange.com
🌐 softwareengineering.stackexchange.com
February 13, 2012
elementary set theory - If we define $\mathrm{null}$ as nothing, is it correct to say $\emptyset = \{\mathrm{null}\}$? - Mathematics Stack Exchange
Though in ordinary language, we ... namely " nothing" , that is the subject of the predicate " being an element of the empty set" , logic tells us that our proposition simply means that : the open sentence "$x$ is an element of $\emptyset$ " is false for every value of $x$. ... Without checking what $x$ is , we can see that the Number of elements in $\mathcal{X}$ is $1$. In case of Null Set , $\emptyset$ ... More on math.stackexchange.com
🌐 math.stackexchange.com
What does “null” mean and why is it here
🌐 r/discordapp
43
51
March 21, 2023
🌐
Vocabulary.com
vocabulary.com › dictionary › null
Null - Definition, Meaning & Synonyms | Vocabulary.com
Null means having no value; in other words null is zero, like if you put so little sugar in your coffee that it’s practically null. Null also means invalid, or having no binding force.
🌐
Cambridge Dictionary
dictionary.cambridge.org › us › dictionary › english › null
NULL | definition in the Cambridge English Dictionary
1 week ago - NULL meaning: 1. having no legal force: 2. with no value or effect: 3. (of a set or matrix) containing nothing…. Learn more.
🌐
Dictionary.com
dictionary.com › browse › null
NULL Definition & Meaning | Dictionary.com
Null means having no value; in other words null is zero, like if you put so little sugar in your coffee that it’s practically null. Null also means invalid, or having no binding force. From the Latin nullus, meaning "not any," poor, powerless null is not actually there at all.
Find elsewhere
🌐
TechTerms
techterms.com › definition › null
Null Definition - What does null mean to a computer?
September 26, 2022 - Null, in computing terms, refers to the absence of a value. It does not mean a value of 0, since 0 is itself a value, nor does it mean a blank space " ".
🌐
Coderanch
coderanch.com › t › 688734 › java › null
what does null mean? (Beginning Java forum at Coderanch)
December 24, 2017 - In Java, null is a "placeholder" value that - as so many before me have noted - means that the object reference in question doesn't actually have a value. Void, isn't null, but it does mean nothing. In the sense that a function that "returns" void doesn't return any value, not even null.
🌐
Wikipedia
en.wikipedia.org › wiki › Null_(mathematics)
Null (mathematics) - Wikipedia
February 4, 2026 - In mathematics, the word null (from German: null meaning "zero", which is from Latin: nullus meaning "none") is often associated with the concept of zero, or with the concept of nothing.
Price: $$
Address: 4572 Vía Marina Unit 102, 90292, Marina Del Rey, CA
🌐
Medium
medium.com › @shlomohassid › null-how-do-you-define-nothing-and-why-would-you-07683bdbe63a
NULL: How Do You Define Nothing? And Why Would You? | by Momi | Medium
May 31, 2025 - If you had an array of 1000 null pointers, that array would still occupy 1000 * N bytes in memory (where N is the size of each pointer, e.g. 4 or 8) just to store all those “zero” values. NULL doesn’t mean “nothing stored here” – it means “stored here is a token that signifies no target.”
Top answer
1 of 16
104

To explain to a boss the difference between "zero" and "null":

"Zero" is a value. It is the unique, known quantity of zero, which is meaningful in arithmetic and other math.

"Null" is a non-value. It is a "placeholder" for a data value that is not known or not specified. It is only meaningful in this context; mathematical operations cannot be performed on null (the result of any such operation is undefined, and therefore also generally represented as null).

For example, as in the comments: "What is your yearly income?" is a question requiring a numeric answer. "0" is a perfectly valid answer for someone who does not work and has no investment income. If the user does not enter a value at all, they don't necessarily make no money; they just didn't want to tell your software how much (or little) they make. It's an unknown, not specified; therefore, to allow the software to continue, you specify the "null" placeholder for that data field within the software. That's technically valid from a data perspective; whether it's valid at the business level depends on whether an actual numeric value (even zero) is required in order to perform a mathematical operation (such as calculation of taxes, or comparison with thresholds determining benefits).

In computers, virtually any operation on a variable containing null will result either in null or in an error condition, because since one of the variable's values is not known, the result of the expression cannot be known. The equivalent of performing math on null would be if I asked you "What's five plus the number I'm thinking of right now?". It's impossible for you to give a definite answer because you don't know the number I'm thinking of. An operation on zero, except for dividing by it, is usually valid and will return another known, unique value.

2 of 16
174

Boss-speak is always tough...

Zero is a number so you can do things with it.

Null is a unicorn. It doesn't exist so you can't do anything at all with it.

🌐
Merriam-Webster
merriam-webster.com › word-of-the-day › null-2023-07-25
Word of the Day: Null | Merriam-Webster
July 25, 2023 - Let’s be honest: null is kind of a nothing word. That’s not a judgment—it was literally borrowed into English from the Anglo-French word nul, meaning "not any." That word, in turn, traces to the Latin word nullus, from ne-, meaning "not," ...
🌐
YourDictionary
yourdictionary.com › home › dictionary meanings › null definition
Null Definition & Meaning | YourDictionary
A null result. ... Of or relating to a set having no members or to zero magnitude. ... A non-existent or empty value or set of values. ... An instrument reading of zero. ... Zero; nothing. ... Something that has no force or meaning.
🌐
Khoury College of Computer Sciences
khoury.northeastern.edu › home › kenb › MeaningOfNull.html
The Meaning of Null in Databases and Programming Languages
On the other hand, the usual meaning of a default value is that it is the value one should use in the absence of any other value being available. That certainly is true in this case, so there is a good argument for using the default value. The field has a value but it is not within the domain. For example, a form requesting an ethnic group does not include the one to which a person most closely identifies. The NULL in this case represents "none of the above" or "other".
🌐
Quora
quora.com › Why-does-null-signify-nothing
Why does null signify nothing? - Quora
Answer (1 of 3): A null instance signifies nothing, an empty object, an empty collection, this is safe and sane. It represents the absence of items, emptiness. This is very useful a state for objects. It is well behaved. A null reference just signifies undefined behavior, it is dangerous and ...
🌐
Definitions.net
definitions.net › definition › NULL
What does NULL mean?
The pope’s confirmation of the church lands to those who hold them by king Henry’s donation, was null and fraudulent. Jonathan Swift, Miscell. ... Something of no power, or no meaning. Marks in ciphered writing which stand for nothing, and are inserted only to puzzle, are called nulls.
🌐
Reddit
reddit.com › r/discordapp › what does “null” mean and why is it here
r/discordapp on Reddit: What does “null” mean and why is it here
March 21, 2023 - Even nothing. For example (I will use JavaScript, but it is the same concept in lots of other languages), ... You will get technically two things. ... If you could bypass that error, you would get null.