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
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
Does 'void' mean return null in Dart, or simply just return nothing?
void means the returned value should not be used and the analyzer will make it an error if you are trying to use a value typed void. Yes, in most cases it means the method are returning null but there are cases where some other type of object is returned. But in both cases, the method signature will make sure the returned value is seen as the void type which prevents us from using the value. EDIT: Here is an example of what I mean: void main() { //print(method1()); // ERROR: This expression has a type of 'void' so its value can't be used. // The following both have the warning: Unnecessary cast. print(method1() as Object?); // null print(method2() as Object?); // Hmm some string? } void method1() { return; } void method2() => 'Hmm some string?'; I should add that you should not cast the value from a method returning void since the returned value is not intended for usage. So my example here is only for educational purposes ;) More on reddit.com
🌐 r/dartlang
6
10
July 21, 2021
🌐
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
🌐
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.
🌐
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 " ".
🌐
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.”
🌐
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.
🌐
ThoughtCo
thoughtco.com › definition-of-null-958118
What Does Null Mean in C, C++ and C#?
April 27, 2019 - The value null means that no value exists. When used as a value, null is not a memory location. Only pointers hold memory locations. Without a null character, a string would not correctly terminate, which would cause problems.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Operators › null
null - JavaScript - MDN Web Docs
The null keyword refers to the null primitive value, which represents the intentional absence of any object value.