null and void
adjective
  1. (idiomatic, law) invalid, cancelled, unenforceable
from Wiktionary, Creative Commons Attribution/Share-Alike License. More at Wordnik
A contract is null if it's completely nonsensical or illegal to begin with. By virtue of it being null, it is void. A legal contract however, is not null, but it may stipulate terms in which it would later become void - for instance, me forcing you at gunpoint to sign a contract to hand over your assets to me would be a null contract, but you voluntarily signing the contract out of free will would not be null, but you may say that this handover only occurs if I am proven to be your kin. Failing that, the contract is void. Answer from kronecap on reddit.com
🌐
Medium
medium.com › @sikirus81 › null-vs-void-whats-the-difference-1f8f6b4801b6
Null vs Void: What’s the Difference? | by sikiru | Medium
January 8, 2024 - This is one of the most common errors in Java. null is different from 0, false, or empty string. Those are valid values, null specifically means absence of value. Void represents the absence of a value in a slightly different way than null.
🌐
Merriam-Webster
merriam-webster.com › dictionary › null and void
NULL AND VOID Definition & Meaning - Merriam-Webster
5 days ago - The meaning of NULL AND VOID is having no force, binding power, or validity.
Discussions

legalese - What's the difference between "null" and "void" in legal language? - English Language & Usage Stack Exchange
Examples of English-only doublets are: "let and hindrance", "have and hold." ... I love this; it seems related to the double-loanwords English has from importing the same language 'twice' at two different eras (compare "warden" and "guardian", e.g.) ... @Kelly C Hess Very interesting observation! Unfortunately, when I went to check the etymology of null and void... More on english.stackexchange.com
🌐 english.stackexchange.com
March 27, 2011
android - java.lang.Void vs void vs Null - Stack Overflow
What exactly is the difference between Void, void, and can I just use null instead? I'm asking this is because I'm looking at sample Android code where they used Void but Eclipse errors on it (it ... More on stackoverflow.com
🌐 stackoverflow.com
c - What's the difference between a null pointer and a void pointer? - Stack Overflow
So, once again, null pointer is a value, while void pointer is a type. These concepts are totally different and non-comparable. That essentially means that your question, as stated, is not exactly valid. It is like asking, for example, "What is the difference between a triangle and a car?". More on stackoverflow.com
🌐 stackoverflow.com
Difference in NULL and VOID Data Structure
Hello Everyone, I am new here and I want to know the Difference in NULL and VOID in data structure? In my previous interview, I have faced this question but I didn’t know the answer. Can anyone knows these difference and help me out or suggest some data structure based interview questions ... More on discourse.mcneel.com
🌐 discourse.mcneel.com
3
0
January 31, 2020
🌐
Cambridge Dictionary
dictionary.cambridge.org › us › dictionary › english › null-and-void
NULL AND VOID definition | Cambridge English Dictionary
April 29, 2026 - NULL AND VOID meaning: 1. having no legal force: 2. having no legal force: 3. (of an agreement or contract) having no…. Learn more.
🌐
Shadowing
shadowing.ai › mirror-room-question › Difference-between-null-and-void-tIj5bh8weWETkf7G2VWQ
Difference between null and void? | interview question
In most programming languages, null is represented by a special keyword (e.g., null in JavaScript, None in Python). A return type that indicates that a function does not return a value. Used to declare functions that perform actions but do not need to return any data. In most programming languages, void is represented by a special keyword (e.g., void in C++, Java, and JavaScript). Check the demo of interview feedback before you start practice for this question. ... Share an example of a web development project you led, highlighting improvements in user experience or functionality.
Top answer
1 of 8
71

I don't remember how I learned this, and I can't find a reference just now, but the peculiar custom of redundancy in our legal documents dates back to medieval England. The Norman conquest of 1066 put a French-speaking king and nobility in charge of an English-speaking people. The English courts at the time were extremely sensitive to detail and would throw out a petition for something as minor as a misspelling, so getting every detail right was crucial. Thus, lawyers developed a habit of incorporating English synonyms for key French words (or it might have been the reverse; memory fails me on that detail). This is how we get phrases like null and void and cease and desist. Since American law (except in the state of Louisiana) is based on English common law, the U.S. inherited this custom. Over time, I suspect the legal professional largely forgot exactly why it was building all this redundancy into its documents and "decided" it was as a general matter of belt-and-suspenders caution.

EDIT: I finally found a reference of sorts at Wikipedia:

David Crystal (2004) explains a stylistic influence upon English legal language. During the Medieval period lawyers used a mixture of Latin, French and English. To avoid ambiguity lawyers often offered pairs of words from different languages. Sometimes there was little ambiguity to resolve and the pairs merely gave greater emphasis, becoming a stylistic habit. This is a feature of legal style that continues to the present day. Examples of mixed language doublets are: "breaking and entering" (English/French), "fit and proper" (English/French), "lands and tenements" (English/French), "will and testament" (English/Latin). Examples of English-only doublets are: "let and hindrance", "have and hold."

2 of 8
40

Curious to learn more about Ms. Hess' answer, I undertook a little more research* today...

The history begins, as with so many curiosities in the English language, with the Norman invasion in 1066. At that time, English was the language of the ordinary people, and the law. At first, William the Conqueror interfered little with use of English in official documents, primarily to bolster his claim to the throne, as it was before his reign strongly associated with the crown and kingly continuity. As time went on, however, and as more and more Normans gained positions of prominence in the English court, and were elevated to the nobility, French came to be the spoken language of the upper-class, and Latin, the imported written language of the learned, eventually came to completely replace Old English in legal documents. This continued for some 250 odd years.

By 1275, we find the first statutes written in French, and by 1310 French had overtaken Latin as the language of law. Well, not exactly overtaken; important Latin legal terms, terms of art, were being sprinkled in French language, where needed. We have inherited these terms up to the present day; this is where our civil law gets important concepts like mens rea, habeaus corpus, writs of mandamus, and a million other terms. Still, Law French was the language that lawyers communicated with each other in, and lawyers continued to develop their the profession with it, creating ever new terms of art when trying, pleading, and judging cases. Things continued in this way for a 100 more years.

Curiously, just as French was just reaching its supremacy as official written language of the Law, it was dying out as a spoken language among the nobility. Increasingly, they were speaking a bastardized pidgin of English and French called Anglo-Norman, and by 1400, Anglo-Norman had nearly died out even amongst the royal household in favor of English. Henry V broke things off completely with his Norman heritage after famously going to war with France in the Hundreds Years' War. English, with modifications, had now become the language of all the English people.

Well, mostly. Law French was still the obscure, technical language of the legal profession, and it was contributing many terms of art of its own, particularly in property law: this is where property law jargon like estoppel, estate, and esquire come from. However, even the lawyers eventually lost control of a tongue they didn't speak, and legalese became a complex argot of Law Latin and Law French terms swimming in a sea of ordinary English.

A conundrum. By 1362, we have evidence that the courts were becoming recognizant of this troublesome state of affairs, as a Statute of Pleading was enacted "condemning French as 'much unknown in said Realm'" and requiring that "all pleas be 'pleaded, shewed, defended, answered, and debated, and judged in the English tongue.'" Ironically enough, the Statute itself was written in Law French, and it was not till 200 years later, when the vocabulary of Law French had shrunk to about 1000 words, that English became the dominant language of the law.

Still, all those terms of art couldn't be simply abandoned. So lawyers of the day simply did the next best thing: they imported synonyms acknowledged as "English" to accompany those technical terms, to give the "synonyms" independent legal weight in documents, and eventually, the combination of the two became phrases with inertia of their own. Such as:

breaking and entering
fit and proper
will and testament
free and clear
acknowledge and confess
law and order
to have and to hold

(English terms are italicized.)

"But Billare!" "Isn't your answer supposed to be talking about null and void?" "And, if I'm not mistaken, doesn't null come from the Latin nullus, meaning 'not any, none,' and doesn't void come from the Latin vocivus, meaning 'unoccupied, vacant'"? "Where's the Old English term there?!"

Ah, yes. The punchline. Null and void became a phrase of their own because the two synonyms from Latin were imported at different times into "ordinary" English. I quote from David Melinkoff's The Language of Law:

Early in the reign of Elizabeth I, null – with a long life as a negative in law French and in Latin – became an English synonym for the law's use of void. Another hundred years, and null and void were a team, null taking the place of other explanatory nothingness (no value, no effect) that had often accompanied void. The combination stuck despite frowns in and out of the law.

So it follows the same rule. Null and void is a semantically redundant phrase because it was formed as a compromised term of art, and has continued in this way for a long, long time.

*: All acknowledgments and quotes go to this most excellent book, Legal Language, by a certain Peter Tiersma, where I found basically most of this research. Do read it if you're interested in more.

Find elsewhere
🌐
Medium
medium.com › @sarkartapas › understanding-void-and-null-in-java-with-examples-358045c61aae
Understanding Void and Null in Java with Examples | by Tapas Sarkar | Medium
May 10, 2023 - Differences between Void and Null The main difference between Void and Null is that Void represents the absence of a value, while Null represents the absence of an object reference.
🌐
TutorialsPoint
tutorialspoint.com › article › differentiate-the-null-pointer-with-void-pointer-in-c-language
Differentiate the NULL pointer with Void pointer in C language
December 6, 2024 - #include <stdio.h> #include <stdlib.h> int main() { int *ptr = NULL; // NULL pointer initialization printf("NULL pointer value: %p<br>", (void*)ptr); // Check if pointer is NULL before using if (ptr == NULL) { printf("Pointer is NULL - safe to check!<br>"); } // Allocate memory ptr = (int*)malloc(sizeof(int)); *ptr = 25; printf("After allocation: %d<br>", *ptr); free(ptr); ptr = NULL; // Good practice: set to NULL after freeing return 0; }
Top answer
1 of 5
63

The most common use of Void is for reflection, but that is not the only place where it may be used.

void is a keyword that means that a function does not result a value.

java.lang.Void is a reference type, then the following is valid:

 Void nil = null;

(so far it is not interesting...)

As a result type (a function with a return value of type Void) it means that the function *always * return null (it cannot return anything other than null, because Void has no instances).

 Void function(int a, int b) {
    //do something
    return null;
 }

Why would I like a function that always returns null?

Before the invention of generics, I didn't have an use case for Void.

With generics, there are some interesting cases. For instance, a Future<T> is a holder for the result of an asynchronous operation performed by other thread. Future.get will return the operation value (of type T), and will block until the computation is performed.

But... what if there is nothing to return? Simple: use a Future<Void>. For instance, in Google App Engine the Asyncronous Datastore Service delete operation returns a Future<Void>. When get() is invoked on that future, null is returned after the deletion is complete. One could write a similar example with Callables.

Another use case is a Map without values, i.e. a Map<T,Void>. Such a map behaves like a Set<T>, then it may be useful when there is no equivalent implementation of Set (for instance, there is no WeakHashSet, then one could use a WeakHashMap<T,Void>).

2 of 5
4

You have an extra comma in your code.

myAsyncTask.execute((Void),null);
                        //^extra comma right here

Also, there is no need to cast null to Void, because (1) Void has no instances and thus there is no Void object, and (2) casting null to anything is rather useless because null is a valid value for any Object data type.

Code should probably just be:

myAsyncTask.execute(null);
🌐
WikiDiff
wikidiff.com › null › void
Null vs Void - What's the difference? | WikiDiff
November 6, 2024 - In proportion as we descend the social scale our snobbishness fastens on to mere nothings which are perhaps no more null than the distinctions observed by the aristocracy, but, being more obscure, more peculiar to the individual, take us more by surprise. ... From (etyl) vuit'', ''voide (modern vide). ... Containing nothing; empty; vacant; not occupied; not filled. ... The earth was without form, and void .
🌐
Signeasy
signeasy.com › home › blog › business › null and void contracts: causes and consequences
Null and Void Meaning: What Makes a Contract Invalid
January 21, 2026 - A contract becomes null and void ... For example, if a contract is signed to sell a product that is subsequently banned by law, the agreement becomes void because performance is legally impossible....
🌐
Collins Dictionary
collinsdictionary.com › us › dictionary › english › null-and-void
NULL AND VOID definition in American English | Collins English Dictionary
Synonyms: invalid, useless, void, worthless More Synonyms of null and void See full dictionary entry for null ... These examples have been automatically selected and may contain sensitive content that does not reflect the opinions or policies of Collins, or its parent company HarperCollins.
🌐
Cambridge Dictionary
dictionary.cambridge.org › example › english › null-and-void
NULL AND VOID in a sentence | Sentence examples by Cambridge Dictionary
The proposal is that such conditions in the future should be null and void, unless accompanied by full compensation for the damage done. ... Example from the Hansard archive.
🌐
Rocket Lawyer
rocketlawyer.com › business-and-contracts › business-operations › contract-management › legal-guide › what-makes-a-contract-null-and-void
What Makes a Contract Null and Void? - Rocket Lawyer
August 17, 2023 - By contrast, a voidable contract ... example, Janelle offers to buy Eric's autographed poster of Prince, but upon closer inspection, both she and Eric realize that the autograph is not Prince's, but Sheila E's....
🌐
Merriam-Webster
merriam-webster.com › thesaurus › null and void
NULL AND VOID Synonyms: 18 Similar and Opposite Words | Merriam-Webster Thesaurus
3 weeks ago - as in null having no legal or binding force public disclosure of the terms of the out-of-court settlement renders it null and void ... Examples are automatically compiled from online sources to show current usage.
🌐
This vs. That
thisvsthat.io › null-vs-void
Null vs. Void - What's the Difference? | This vs. That
In other words, null means that something is invalid or has no value, while void means that something is completely invalid and cannot be enforced. Null is often used in legal documents to indicate that a particular provision or contract is invalid.
🌐
McNeel Forum
discourse.mcneel.com › rhino developer
Difference in NULL and VOID Data Structure - Rhino Developer - McNeel Forum
January 31, 2020 - Hello Everyone, I am new here and I want to know the Difference in NULL and VOID in data structure? In my previous interview, I have faced this question but I didn’t know the answer. Can anyone knows these difference and…
🌐
Longman
ldoceonline.com › dictionary › null-and-void
null and void | meaning of null and void in Longman Dictionary of Contemporary English | LDOCE
→ nullExamples from the Corpusnull and void• If the contract has not been signed by witnesses, it is considered null and void.• Yet it was Shirley Place who kept the interview firmly null and void.• The elections were declared null and void.• As far as he was concerned, all of the ...
🌐
Dictionary.com
dictionary.com › browse › null-and-void
NULL AND VOID Definition & Meaning | Dictionary.com
Canceled, invalid, as in The lease is now null and void. This phrase is actually redundant, since null means “void,” that is, “ineffective.” It was first recorded in 1669. Examples are provided to illustrate real-world usage of words in context.