Skip to main content

Science Quote by Bjarne Stroustrup

"However, when Java is promoted as the sole programming language, its flaws and limitations become serious"

About this Quote

Bjarne Stroustrup, creator of C++, warns against language monoculture. Java fixed a host of 1990s pains: memory safety through managed references, portability via the JVM, a consistent standard library, and a familiar object-oriented model. Those strengths become weaknesses when treated as universal. Garbage collection introduces nondeterminism that complicates hard real-time systems and tight latency budgets. The virtual machine abstracts away memory layout and hardware details that systems code often must control. Historically, features like type-erased generics, lack of value types, and delayed support for low-level intrinsics limited performance-critical workloads. Deterministic destruction and RAII are awkward to emulate, making fine-grained resource management clumsier than in languages designed for it.

Stroustrup is not attacking Java so much as the institutional habit of declaring a single tool sufficient for every job. When academia or industry crowns one language as the default for teaching, services, and systems alike, trade-offs get papered over. Students learn one worldview and miss concurrency models, value semantics, metaprogramming, or the realities of caches and memory layout. Enterprises bend problems to fit the runtime rather than choosing a runtime to fit the problem. You can build trading engines, device interfaces, and even embedded systems in Java with enough engineering, but the contortions reveal the mismatch.

The broader point is sociotechnical. A language shapes how people think, design, and share idioms. A uniform stack simplifies training and deployment, but it also narrows imagination and concentrates risk. Diversity of tools encourages clearer thinking about constraints and exposes engineers to multiple abstractions and cost models.

Java has evolved impressively, adding lambdas, modules, improved JITs, and projects targeting value types and ahead-of-time compilation. Yet kernels, drivers, tiny embedded targets, and the hardest real-time workloads still resist a managed, general-purpose runtime. The responsible stance is pluralism: choose languages for their fit, not their popularity, and remain keenly aware of the costs that abstractions impose when promoted as the only way.

Quote Details

TopicCoding & Programming
More Quotes by Bjarne Add to List
However, when Java is promoted as the sole programming language, its flaws and limitations become serious
Click to enlarge Portrait | Landscape

About the Author

Denmark Flag

Bjarne Stroustrup (born December 30, 1950) is a Scientist from Denmark.

15 more quotes available

View Profile

Similar Quotes

Miguel de Icaza, Scientist
Marc Andreessen, Businessman