My Go vs Java preferences in favour of Go. Low cognitive overhead Goroutines Channels Answer from lickety-split1800 on reddit.com
🌐
Reddit
reddit.com › r/golang › go vs java
r/golang on Reddit: Go vs Java
May 27, 2025 -

Golang has many advantages over Java such as simple syntax, microservice compatibility, lightweight threads, and fast performance. But are there any areas where Java is superior to Go? In which cases would you prefer to use Java instead of Go?

Top answer
1 of 5
421
Java has a bigger, more mature ecosystem, due to being around since the mid 1990's. That's probably the main measurable thing that isn't just someone's opinion.
2 of 5
123
I come from a Java background but writing Go since a few years. Like both languages. Today I prefer Go over Java to do basically anything. That being said, I think Java’s stronger points are: No pointers. You still need to know the difference between primitives vs objects but you never see the pointer syntax and logic (For me they are completely fine, but I know some devs who find them confusing, never actually “got” them and never want to see them in code) Java frameworks, harnessing the power of reflection (basically the whole compile time info being there at runtime) work really magically. (I’m not a big fan of magic, don’t think they are worth the tradeoff, but they really make some things with very small amount of “tidy” code possible) Functional features, stream API etc. Very mature and solid frameworks and libraries. Some come to mind are Spring, Jackson, Guava (great stuff for caching in it), OkHttp, and various Apache libraries. Perfect developer tooling: IntelliJ Idea, debuggers, VisualVM and other profiling tools and so on (JVM makes a lot of things work “perfectly” there) Constructors making default values possible. Better relation with immutability. Many useful data structures in standard library. Some examples are: LinkedHashMap, TreeSet, ConcurrentMap and so on.
🌐
Roadmap
roadmap.sh › golang › vs-java
Go vs Java: Choosing the Right Language for Your Projects
Go comes with extensive tools and libraries for building small to large-scale applications. Java is a high-level, object-oriented programming language owned and maintained by the Oracle Corporation.
🌐
Hacker News
news.ycombinator.com › item
I led our teams to switch from Java to Go because of the productivity of develop... | Hacker News
February 3, 2017 - So in my situation, the JVM is heavier by every single measure listed, and for each by a considerable margin · This is the easy trap to fall into though. What if you aggressively rewrote the Java apps from crappy legacy frameworks to well developed Java apps
🌐
Reddit
reddit.com › r/golang › reasons you prefer golang over java?
r/golang on Reddit: Reasons you prefer Golang over Java?
May 17, 2023 -

Background: I've been using Java for about 8 years and just started learning Golang.

So far, I'm in love with the language, and these are the top reasons:

  • More low-level control of memory. I hated how much the JVM's GC relied on the compactor. Objects can only be created on the heap and object arrays are arrays of pointers to non-contiguous locations in memory. Many like to say that Java has better GCs than Go, but that's because Go's memory model doesn't require such complicated GCs. It's also nice to have pointers in Go.

  • More paradigm-neutral. Java was designed from the beginning to be a language primarily for OO programming. Using Java for functional programming results in unnatural syntax and inefficient use of memory. Golang feels ambidextrous.

I'm still very new to Golang but as of right now, I even see it as a replacement for Node and Python in the areas of scripting and web server development. Golang's fast compile time closes makes it competitive against interpreted languages in terms of development speed, but 1-ups these languages because it gives the developer more low-level control of memory and has static typing.

🌐
YourBasic
yourbasic.org › golang › go-vs-java
Go vs. Java: 15 main differences · YourBasic Go
Go allows methods on any type; no boxing is required. The method receiver, which corresponds to this in Java, can be a direct value or a pointer.
🌐
GeeksforGeeks
geeksforgeeks.org › java › go-vs-java
Go vs Java - GeeksforGeeks
December 4, 2025 - Developers often compare Go and Java when choosing the best language for backend development, microservices, and high-performance systems.
🌐
Medium
medium.com › @mohnisha › java-vs-golang-performance-testing-4d0d6a5123fb
Java vs Golang Performance Testing | by Mohnish Aggarwal | Medium
November 11, 2025 - The Go runtime uses an event driven model to handle I/O making Goroutines nonblocking on I/O. The biggest difference I see between both languages that would affect performance is Java’s optimization of bytecode into machine code at runtime ...
Find elsewhere
🌐
DZone
dzone.com › coding › java › when to use go vs. java | one programmer’s take on two top languages
When to Use Go vs. Java | One Programmer’s Take on Two Top Languages
August 5, 2020 - Go and Java are both C-family languages which means they share a similar language syntax. That’s why Java developers often find reading Go code fairly easy and vice versa. Go does not use a semicolon (‘;’) symbol at the end of a statement though except in occasional cases where it is needed.
🌐
Turing
turing.com › blog › golang-vs-java-which-language-is-best
Golang vs. Java: What Should You Pick?
February 21, 2025 - Golang and Java provide ample features. However, Java is better suited for complex tasks because it is object-oriented. Object-Oriented Programming (OOP) drives code reuse thereby creating a better developer experience.
🌐
Medium
medium.com › engineering-playbook › go-vs-java-for-microservices-we-tried-both-heres-what-happened-f1e03fb9bf3b
Go vs Java for Microservices: We Tried Both, Here’s What Happened | by Code blows | Engineering Playbook | Medium
February 10, 2026 - Our Go guy (let’s call him Marcus) had the service running in three days. Three. Days. It took us a week just to set up all the Spring dependencies in Java.
🌐
Codecademy
codecademy.com
Learn to Code - for Free | Codecademy
JavaScript · Web design · Machine learning · Computer science · C++ Mobile development · AI · IT · C# Game development · Cloud computing · Cybersecurity · Go · DevOps · Certification prep · Top subjects · Certification prep · Code foundations ·
🌐
Hacker News
news.ycombinator.com › item
One year after switching from Java to Go | Hacker News
February 27, 2025 - Edit: im not advocating writing 'ls' in java, and I would also agree that java uses more memory for small programs, so its not a systems programming language probably · Just use new() it's pretty fast
🌐
GraffersID
graffersid.com › golang-vs-java-what-should-you-choose
Golang vs. Java in 2026: Performance, Scalability, and Which Backend Language Is Best for Your Project
November 7, 2025 - Over 60% of AI-powered enterprise platforms and FinTech systems still rely on Java for dependable performance and integration with AI frameworks. Golang compiles directly to machine code, making it faster and more efficient than JVM-based execution.
🌐
BMC Software
bmc.com › blogs › go-vs-java
Java vs Go: What’s The Difference?
August 14, 2020 - Java is the older and more widely used programming language. It is object-oriented, has a larger community—thus library, and relies on the Java virtual machine (JVM). Go, or Golang, is newer, supports concurrency, is more readable, and is ...
🌐
TIOBE
tiobe.com › home › tiobe index
TIOBE Index - TIOBE
1 month ago - The TIOBE Programming Community index is an indicator of the popularity of programming languages. The index is updated once a month. The ratings are based on the number of skilled engineers world-wide, courses and third party vendors. Popular web sites Google, Amazon, Wikipedia, Bing and more ...
🌐
JavaScript in Plain English
javascript.plainenglish.io › i-benchmarked-python-vs-go-vs-java-the-winner-surprised-everyone-1a4cac3049d0
I Benchmarked Python vs Go vs Java — The Winner Surprised Everyone | by Coding Stories & Tips | JavaScript in Plain English
December 6, 2025 - I Benchmarked Python vs Go vs Java — The Winner Surprised Everyone The real performance battle nobody has the courage to talk about — until we nearly melted production. I’ve spent most of my …
🌐
Shakuro
shakuro.com › blog › golang-vs-java
Golang vs Java: Developer’s Guide to Choosing the Language | Shakuro
Go is a compiled language that translates source code into machine code before execution. This typically results in faster execution times because there’s no intermediate layer (like a virtual machine in Java).
🌐
GitConnected
levelup.gitconnected.com › is-go-faster-than-java-a-wrong-question-to-ask-adfbe0b071cb
Is Go faster than Java? A wrong question to ask | by Enrico Piccinin | Level Up Coding
January 4, 2021 - Go does not have try-catch. Some say you can not develop serious enterprise level code without such basic features. You easily end up repeating over and over again the same code. The opposite argument. With Java you have Object Orientation, Aspect Oriented programming via annotations, Functional Programming even if it tastes a bit clumsy, magic frameworks such as Spring.
🌐
Medium
charleswan111.medium.com › java-vs-golang-a-comparative-insight-into-usage-performance-and-industry-preferences-533a24013230
Java vs. Golang: A Comparative Insight into Usage, Performance, and Industry Preferences | by Charles Wan | Medium
January 21, 2025 - Golang: Designed for high-performance, it compiles directly to machine code, resulting in faster execution. Its lightweight concurrency model (goroutines) is particularly efficient for parallel processing and scalable systems.