<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/java-is-becoming-more-like-rust-and-i-am-here-for-it--gizqviaep" -->

---
title: Java is becoming more like Rust, and I am here for it!
description: Java is incorporating some of Rust's features, such as immutability and algebraic data types, which will strengthen Java's position as a popular programming...
canonical: https://daily.dev/posts/java-is-becoming-more-like-rust-and-i-am-here-for-it--gizqviaep
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Java is becoming more like Rust, and I am here for it! | daily.dev
og:description: Java is incorporating some of Rust's features, such as immutability and algebraic data types, which will strengthen Java's position as a popular programming...
og:url: https://daily.dev/posts/java-is-becoming-more-like-rust-and-i-am-here-for-it--gizqviaep
og:image: https://api.daily.dev/og/posts/gIzqViaeP.png
og:image:alt: Java is becoming more like Rust, and I am here for it!
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Java is becoming more like Rust, and I am here for it!

**[Lobsters](https://daily.dev/sources/lobsters)** · 3 min read · 76 upvotes · 9 comments

## Summary

Java is incorporating some of Rust's features, such as immutability and algebraic data types, which will strengthen Java's position as a popular programming language in the business world.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://joshaustin.tech/blog/java-is-becoming-rust/>

## Community discussion

Top comments from developers on daily.dev.

**@r3dc0de** · 3 upvotes

> Let Java die, maybe ?

**@noiem** · 2 upvotes

> Immutability and algebraic data types don't make any language "more likely" to be rust.

**@darryl\_bayliss** · 0 upvotes

> Nice to see Java acquiring Immutability through Records. Been using Kotlin & Swift for a couple of years and the ability to opt into mutability makes the code much easier to reason about.

---

Tags: [#java](https://daily.dev/tags/java), [#rust](https://daily.dev/tags/rust)

[View this post on daily.dev](https://daily.dev/posts/java-is-becoming-more-like-rust-and-i-am-here-for-it--gizqviaep)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Java is becoming more like Rust, and I am here for it!","url":"https://daily.dev/posts/java-is-becoming-more-like-rust-and-i-am-here-for-it--gizqviaep","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/java-is-becoming-more-like-rust-and-i-am-here-for-it--gizqviaep"},"datePublished":"2024-03-05T18:31:54.166Z","dateModified":"2024-05-09T08:20:02.615Z","description":"Java is incorporating some of Rust's features, such as immutability and algebraic data types, which will strengthen Java's position as a popular programming...","image":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","thumbnailUrl":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","isAccessibleForFree":true,"articleSection":"Lobsters","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Lobsters","logo":"https://media.daily.dev/image/upload/s--tl8v_Fku--/f_auto,t_logo/v1698841318/logos/lobste.jpg","url":"https://daily.dev/sources/lobsters"},"commentCount":9,"discussionUrl":"https://daily.dev/posts/java-is-becoming-more-like-rust-and-i-am-here-for-it--gizqviaep","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":76},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":9}],"keywords":"java,rust","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Lobsters","item":"https://daily.dev/sources/lobsters"},{"@type":"ListItem","position":3,"name":"Java is becoming more like Rust, and I am here for it!"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/java-is-becoming-more-like-rust-and-i-am-here-for-it--gizqviaep","comment":[{"@type":"Comment","text":"Let Java die, maybe ?","datePublished":"2024-03-06T07:51:10.931Z","url":"https://daily.dev/posts/gIzqViaeP#c-P2HUpuP6c","author":{"@type":"Person","name":"Dan Liebault","url":"https://daily.dev/r3dc0de","image":"https://avatars.githubusercontent.com/u/20596119?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}},{"@type":"Comment","text":"Immutability and algebraic data types don’t make any language “more likely” to be rust.","datePublished":"2024-03-08T08:58:51.807Z","url":"https://daily.dev/posts/gIzqViaeP#c-SYbSfAsRg","author":{"@type":"Person","name":"S. M. Noiem Uddin","url":"https://daily.dev/noiem"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"Nice to see Java acquiring Immutability through Records. Been using Kotlin \u0026amp; Swift for a couple of years and the ability to opt into mutability makes the code much easier to reason about.","datePublished":"2024-03-23T11:02:05.915Z","url":"https://daily.dev/posts/gIzqViaeP#c-Xrhoj0gSy","author":{"@type":"Person","name":"Darryl Bayliss","url":"https://daily.dev/darryl_bayliss","image":"https://media.daily.dev/image/upload/s--sjYPSFcm--/f_auto/v1710873390/avatars/avatar_9WLnF9CyBShR0Mgwu0OcX"}}]}
```

