# Strongly Typed Language

> A language that will not mix a word and a number on its own.

**Field:** Software Development  
**Category:** Languages  
**Also known as:** Strong Typing, Weakly Typed Language, Weak Typing

## Think of it like

It is like a shop that will not take a toy coin for real apples.

## Definition

A strongly typed language will not mix values of different types unless you tell it to. If you add a word to a number, it stops with an error. A weakly typed language quietly turns one into the other and goes on. Strong or weak is not the same as static or dynamic. Python is strong and dynamic, and C is static but fairly weak.

## Example

Adding the text "1" to the number 1 is an error in Python. In JavaScript, the same line gives the text "11".

## Example code

```python
print("1" + 1)  # Python: TypeError. JavaScript gives "11".
```

Python refuses to add a word to a number. JavaScript quietly joins them.

## Why it matters

Quiet changes cause strange bugs that are hard to find. A strong language stops at the line that is wrong.

## Common mistake

Thinking strongly typed means statically typed. One is about how strict the checks are, the other about when they happen.

## Three principles

- **No quiet mixing.** Types must match.
- **Weak converts.** It guesses and carries on.
- **Not static.** A separate question from when.

## Related terms

- [Statically Typed Language](https://learn.benibix.com/term/development/statically-typed-language)
- [Dynamically Typed Language](https://learn.benibix.com/term/development/dynamically-typed-language)
- [Type System](https://learn.benibix.com/term/development/type-system)
- [Python](https://learn.benibix.com/term/development/python)
- [JavaScript](https://learn.benibix.com/term/development/javascript)

## Told apart from

- [Strongly Typed vs Statically Typed](https://learn.benibix.com/compare/strongly-typed-vs-statically-typed): People think strongly typed and statically typed mean the same thing, and they do not. Static or dynamic is about when types are checked: before the program runs, or while it runs. Strong or weak is about how strict the check is: does it refuse to mix a word and a number, or quietly join them? Python is strong but dynamic. C is static but fairly weak.

## Taught in

- [Static and Dynamic Typing](https://learn.benibix.com/learn/development-languages/static-and-dynamic-typing): Programming Languages, 3/12

![A two by two grid. One axis asks when types are checked: before the program runs, or while it runs. The other asks how strict the language is: strong, which refuses to mix a word and a number, or weak, which quietly converts one into the other. Python sits in the strong and while-it-runs corner, lit up. Java sits in strong and before. JavaScript sits in weak and while-it-runs, with the example quote 1 plus 1 giving quote 11. C sits in weak and before.](https://learn.benibix.com/diagrams/dev4-typing.svg)

---

Source: https://learn.benibix.com/term/development/strongly-typed-language
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
