r/developersIndia • u/Old_Friend166 • Oct 19 '24
General Why is Java still so dominant in the Indian tech scene?
Hey folks,
I'm curious why Java continues to be widely used in India's software industry, especially in larger companies, despite the rise of languages like Go, Rust, and Python globally.
Is it due to legacy systems, a large pool of Java developers, or the reliance on frameworks like Spring and Hibernate? Or is there another reason why Java remains a top choice?
Thanks!
484
Upvotes
•
u/AutoModerator Oct 19 '24
It's possible your query is not unique, use
site:reddit.com/r/developersindia KEYWORDSon search engines to search posts from developersIndia. You can also use reddit search directly without going to any other search engine.Recent Announcements & Mega-threads
An AMA with Subho Halder, Co-founder and CEO of Appknox on mobile app security, ethical hacking, and much more on 19th Oct, 03:00 PM IST!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
133
u/Comfortable_Skin4469 Oct 19 '24
8 years ago, before Rust or Go was popular, I worked for an Indian cab company (you know it).
There was a hard time out set by the SRae team on the APIs: 500 ms. In less than 500 milliseconds, every downstream API and DB calls should finish their task and give the result back to the public API.
Java was able to achieve that speed. It's still used for high performance systems. Go may eat some parts of the Java pie but enterprises value availability of resources as well. It's hard to find Rust or Go developers.
Java is easier to learn compared to Rust.
23
u/brandomised Oct 19 '24
About 30-40% of tech work is in BFSI ( banking. Financial services and insurance) companies. Look at industry wise revenue for TCS, Infy etc, highest share is always BFSI. And these companies jumped onto Java back in 90s, 2000s given the circumstances (JVM was a big deal - you can run the code on any type of server or OS, world was not always like this). Given low risk appetite for BFSI, they've spent time and money in perfecting these systems for last 2 decades
A lot of GCC in India are by BFSI - wells fargo, JP Morgan, HSBC, Citi, StanC etc. Hence the talent pool is dominated by people proficient in Java, and the job requirements too are dominated by Java
15
u/Hour_Part8530 Oct 19 '24
I see a lot of fresh minds here. I have 15 years of experience in programming, with different types of companies including WITCH, investment banking, hedge fund management, product and FAANG.
So here are my 2 cents. Companies don’t make software for the sake of making it or for the technology. Code is just a way to solve a problem in a faster and an efficient way.
To put it bluntly, all the technologies are different tools in a mechanical tool kit. You’ll need a hammer, screw driver, wrench, pliers, and some precision tools also. Just because precision tools seem fancy or you know how to use it, you can’t use them for everything.
So, stop saying stuff like tech A is superior to tech B. Enterprise and banking apps need longer lifetimes, sometimes even decades. They need to be built on tech which has consistent development plans, external support, ease of maintenance, readability, extensibility, availability of tools. All of the above can be easily achieved using OOPs paradigm. Even with all its faults, Java enforces the OOPs in a better way.
Lastly, never ever implement features for the sake of using a new tech. Your success as an engineer is decided by value you add to the business not by the fancy framework you use.
39
u/random-backpacker Oct 19 '24 edited Oct 19 '24
Many legacy projects were written in Java during the 2005-2015 period.
I also work with a project that uses legacy technologies - jsp, struts, Spring Framework, and Java 8 and the project was written in 2007
8
u/Aladin-dictator Software Developer Oct 19 '24
I am working on rust from some time and i am amazed by the job opportunities Java developers have!
4
u/ChaaChiJi Oct 19 '24
Legacy systems play a big in this. Most of the legacy systems are from verticals like Banking, Healthcare, Telecom & Aviation. It's not possible to migrate them to a newer tech, even some of the legacy systems are still using Java (without any framework) and they're in the process of getting migrated to Spring boot.
Why not possible? - These are very stable systems & migrating them to a newer tech will take time, effort & money which companies avoid. They also have the same rule as us developers - If it's working then don't touch it.
You may not believe it but there are some companies which are still using Mainframes as a backend to store data instead of PostgreSQL or MySQL. And they simply don't want to migrate to a newer system because it can risky if any data is lost. Mainframes are still considered very secure.
Legacy systems built in Java lead to the assumption that any newer system built on Java will provide the same support & stability as they have on older systems. If your client isn't ready to move on to a newer tech stack then what can you do.
For one of our new projects it took us approx. 2 months to convince the client that we can do better in Scala.
Another reason is Java has a very big community, almost every experienced full stack developer you'll find would have good knowledge or experience in Java.
4
u/Tough-Difference3171 Oct 20 '24 edited Oct 20 '24
I am not a Java fan myself, but I will have to appreciate Java for this answer. Mentioning this to make it clear that I won't be interested in fanboy flights in the comments.
Java can do pretty much everything at least 80% as good as the best language suited for the domain.
So if you want to hire a team with a standard skill set, and want them to start being productive quickly after hiring, Java becomes a good choice.
Very few companies have the actual need to really pick the best language. And in many cases, their tech leadership only ever worked with Java, so they also have a blind spot, and may not even know why Go or Rust might be better for their use case.
But the fact stands, you can still do whatever those languages do, to a reasonable limit. And may even be able to do a few things that those languages can't do.
As a manager, you also need to keep the tech stack somewhat concentrated, to 3-4 languages. As python is always part of the tech stack for automation and test suites, and JS would be needed for frontend/proxy-backend, it leaves only one more slot in most cases.
Having 5 languages for your services makes no sense for any company, because most companies are either writing API services, or some batch processing jobs.
Using a common language helps with hiring and productivity. Teams can easily share code and best practices. A library built and tested by one team is available for other team to use out of the box. And the benefits mostly outweigh the haps left by Java.
You only need to be fixated on high heap memory, and other problems, in very specific use cases. And most big companies, who are in B2B business don't care about resource utilisation as much as you might intuitively feel. If it's the client's paid hardware, and they aren't chewing you for resource utilisation, you simply don't care about it.
Those systems don't change much for years, so the client's expectations are aligned based on the specs shared years ago. If you go and ask them for more hardware after 10 years, they won't really mind it for the additional features they might have gotten for all this time.
For startups too, such decisions are made on very different metrics. The language or framework they use, simply depends on "What language were the founding engineers comfortable with?" . Most people study some amount of Java in school or college, along with C. As C can't practically be used for backend REST APIs, Java becomes the obvious choice. This way startups can also hire almost anyone.
But at the same time, you might see startups still using PHP-laravel even today, because that's all the founders knew, and now that something is working, there's no need to rewrite it.
Golang and Rust find their place in the 2nd or 3 iteration of optimizations, which only comes for B2C companies that are just out of the startup phase, and are now looking to reduce their costs, or to extract as much performance they can, from the hardware that they have.
No one picks Golang and Rust, just because they are better designed languages.
There was a time when Python was considered to be Java-killer, because of how easy to use it was. But soon people realised that it's also very easy to break, with crazy error messages. And the performance was laughable in backend systems. So gradually, it settled for automation and testing tasks, in which everyone wants to save developer time. ML is another area where Python is the de-facto standard. (Yeah.. yeah.. it's all C libraries underneath. I know)
As someone who has been working on Golang for many years, I see the benefits. But I can see why very few companions and teams actually need it. (Like, really need it, and should rewrite their systems in Golang)
Also, tech moves really slowly in large organisations.
Most fintech companies and banks haven't entirely moved away from struts and SOAP era, and just using Springboot with REST APIs is the "cutting age shi*" for them.
Companies like Microsoft, are still using dotnet framework, MVC and even that dotnet forms thing, till now. Whille they are themselves pushing everyone else to move on to newer dotnet versions, and dropping support and even Azure compatibility.
But all of that is supported internally. Because, while all the clients being concentrated on one tech that Microsoft can focus on, is good for the company, Internally they stit follow the "if it ain't broken, don't touch it" (added this example, because C# is Microsoft's version of Java)
And finally, there are many many services from other companies, that still only have Python, Java, dotnet, and PHP SDKs available, and you will have to work with them for months, to create an in-house golang SDK, and they might not even be interested in actually exposing their API details to you, as a client.
So it will take years for the companies to move away from Java. And the ones least willing to move, will keep holding everyone back, leading to compatibility issues.
Meanwhile, newer companies will be able to move faster, once they are out of the bootstrap start-up phase, and able to iterate over their initial shi**y code.
Languages like Golang and Rust shine when you are breaking monoliths into micro-services.
But then again, even they can do it only so much. Remember, the need to keep tech stack limited? That's the biggest factor after "lack of absolute need to change", and "compatibility with older tech".
You can't hire a team of 5 developers, who are experts in 7-8 languages each. They would be rare, and would be very costly. Most developers only ever learn one language well enough, and maybe explore 1-2 more languages. The ones who are passionate enough to learn more, also learn a lot of other things, and are looking for bigger paychecks than what an average company might want to offer.
420
u/Reasonable_Sample_40 Oct 19 '24
Before python, go, javascript were popular or got powerful, there was only java which could do all these things. Java is easy and powerlful.
So java was used for every application that was built during a period. Everuth8ng written in java needs to be updated and maintained. So java is very much required.
169
u/agathver Staff Engineer Oct 19 '24
Java works reliably. Easy to scale in both tech and people wise. Has a great ecosystem
193
u/cant-find-user-name Backend Developer Oct 19 '24
It is dominant in every country's tech scene. It is not just in India.
23
u/jaktrik Backend Developer Oct 19 '24
At some point of the development journey language becomes irrelevant. And then you want to get shit done asap. Java is there to get shit done asap. Mature framework and developer support, provide everything you need to start, develop and deploy.
Another point of Java is the development of language itself they provide new features at a slow pace and at the same time keep up with industry trends.
83
u/Appropriate-Cap-8285 Oct 19 '24
Not just India its popular everywhere. Companies start with JS, Python and Go but after they need scaling and structure they switch to Java or .NET for many services. The main reason is its a beautiful language and comes with a lot of tooling already which is mature and stable.
20
u/scan_line110110 Frontend Developer Oct 19 '24
Enterprises don't go around changing their tech stack willy nilly. It takes a lot of time to transition, and if Java works, then it works. Also when you mean Indian tech scene it is filled with consultancies and service based jobs for EU/US/UK based customers. It is still used world wide, just Indians do it cheaper.
31
u/fractured-butt-hole Oct 19 '24
Java is quite good performance compared to ruby python and has better learning curve than c/c++
It's a tried and tested language with huge enterprise backing it and it's ocean of extremely competent developers
15
u/cabinet_minister Software Engineer Oct 19 '24
It's a joke how people think Java is legacy and python is modern 💀
7
u/Cautious-Necessary61 Oct 19 '24
Java is and will be dominant because of organizations like Apache Foundation exist. Companies benefit from large collaborative projects. I don't know of any such large collabs, so if anyone know please share. Thanks!
6
u/Expensive-Kiwi3977 Oct 19 '24
Even now Java has its power. I feel go is verbose and Java is not. Cause I don't like the error handling in go which wither idiomatic why do I wanna care for all the errors everytime. I will care for them seperately on exception handler class if in Java. Rust is cool it's hard and is for systems programming.
2
u/_sparsh_goyal_ DevOps Engineer Oct 19 '24
1/ Java gained popularity when the dot com bubble burst. People started leaning towards making software that aren't just interconnected but also were reliable and easy to scale.
2/ Indians have a sheep mentality. We tend to follow trends rather than set our own standards and improve.
Brands built off Java apps thrived, leading to them improving on Java only, so they went to colleges to hire Java devs, juiniors saw seniors getting hired for java so they became java devs, now that we are only making java devs, they make products on Java only and the cycle continues.
25
u/viks4222 Senior Engineer Oct 19 '24 edited Nov 26 '24
There must be n number of reasons for java demand but I have seen most computer science related course students in india like CSE, BCS, MCA etc chosen java for competitive programming over any other language within 2011-2019 timeline, whereas electronics & electrical people were choosing C, C++.
4
u/That-Raspberry-730 Oct 19 '24
It's because enterprises are dependent on java. Because of it's robust security features and other benefits over other languages around 15-20-25 years back, it had become language of choice for enterprises. And it's not so easy to change tech stacks of enterprises where so much more has already been invested. So where ever are enterprises, java may be dominant. If you are thinking that in India it's more popular, that may be because India is still an outsourcing hub, maintaining software for other countries, which were already created with java tech stack.
4
u/confusedfella96 Oct 20 '24
Tech stack agnostic senior dev here. In my current company I mostly work with golang and python. But for my personal projects I prefer java a lot, but I mostly use JVM with Kotlin as my development language. The amount of already available libraries, frameworks which are battle tested is huge. I don't get the hate on java, if you're not comfortable with writing all the classes, switch to a more functional language like scala or kotlin. Python is good for prototyping, but it's slow. Golang is good for faster applications, but it lacks bug free well established frameworks/libraries, you need to write a lot ob boilerplate to achieve a simple functionality. I find JVM +Kotlin to be a nice middle ground.
7
u/Wonderful-Pie-4940 Oct 19 '24
Who told you java is for legacy systems ?
Softwares like Apache kafka, Elasticsearch and many more highly performant and highly scalable systems are written in java. These softwares scale easily and handle millions of request per second.
The ecosystem for java is so mature that it makes a joy to develop any kind of application on it.
1
u/Impressive-Set559 Oct 19 '24
Java is a power horse of the enterprise. Unlike half baked languages like go, java has many things standardized and it just works!
1
u/Otherwise-Ad3350 Backend Developer Oct 19 '24
I switched to java 17 / springboot 3. Must say the verbosity is reduced and writing program has become easy and learning understanding too. I find javascript more difficult than java now. Thats why not only for legacy system even many new apps also using latest java as backend language due to better readability.
1
u/ForeverIntoTheLight Staff Engineer Oct 20 '24
Why are you comparing Rust to Java? Their main use cases are completely different, as is their underlying philosophy.
Python? Last I checked, Python isn't built for the kind of performance Java/C# can give you.
Go? The tooling and range of libraries for Go are nothing compared to what is available for Java.
1
u/Wandering_Satori Oct 20 '24
I have a system which handles more than a million messages per second and it’s written in Java. what you use and how you use it is more important
12
u/No_Entrepreneur_8142 Oct 19 '24
The way you refer to “indias tech scene” . Do you work outside india, if so enlighten us with what youve seen
3
u/time_traveller_0 Oct 19 '24
because when you build a product from scratch as an mvp other stacks are easier compared to java. but when it comes to scaling these stacks have several hurdles and limitation. java when considered from an enterprise viewpoint is much better at scaling and keeping the code well structured, etc. ps: this is my viewpoint after working in several enterprise clients who used different stacks and in the end java was the answer.
3
u/Purple-Object-4591 Researcher Oct 19 '24
Someone said Java is beautiful ⚰️⚰️⚰️ bro has his standards underground
2
u/bravepreeth Data Engineer Oct 19 '24
Big Yes still service based companies train you in java for their projects
2
u/flight_or_fight Oct 19 '24
do you have data of language popularity by geography to back your statement?
2
u/ajeeb_gandu Full-Stack Developer Oct 19 '24
Not just India. It's used by 5.5 billion devices in the world
2
u/[deleted] Oct 19 '24
Honestly, it's versatile, it lets you do specific stuff with not much abstraction so it's powerful, it's performant, it has a nice ecosystem, and it has a solid history behind it with most legacy software still being used at least partly written in Java.
2
u/Passionate-Lifer2001 Oct 19 '24
Java is still the most powerful backend language. A lot of large companies still use Java (Amazon, Google, Twitter, Oracle, IBM)
Most of the banking systems are Java based.
Lot of OpenSource support
Google, Apache; Spring, IBM
Pretty powerful jVM and build tools
Lot of resources online.
Lot of framework support
Lots of flavours of open JDK to choose
I am leading one of the major transformation in Europe and we are rewriting a lot of backend - obviously it’s written in Java.
Go and rust are great but doesn’t have the reach like Java (yet).
I’d remove python from this mix - it’s not a language that scales like Java or Rust.
2
u/lVlulcan Oct 19 '24
I’m not an Indian developer but I’m a USA based one, just wanted to say that in America most large companies (and small too, depends on what they need) writing enterprise level software are heavily using Java as well. A lot of really great open source software that companies utilize is Java or JVM based
2
u/Serious-Face-4031 Oct 20 '24
Most of the time is spent on making blocking calls - network calls, os calls, etc. no matter which language you pick, these will continue to be the latency adders. Hence, rather than focus on programming languages, people just pick the most robust framework and focus on engineering the problem points leading to more blocking calls, which is nothing but efficiency of distributed systems.
2
u/aloha-lord Oct 20 '24
It's easy and cheaper for companies to find good Java developers. Java is pretty efficient as a language and has a good developer ecosystem for most of the problems getting solved in India. If you're looking for a different language you need to define a strong business use case for it. For instance, if you want to do core/low level systems or ML work, Java would be a bad choice. From my experience, not a lot of companies do that in India. Most Indian startups operate at an application level, solving some kind of a business problem. Java works fine for these use cases.
2
u/Rein_k201 Backend Developer Oct 20 '24
20 year old legacy products 🥲
3
u/Kamchordas Oct 19 '24
Legacy applications. That's it nothing more than that. People don't use Java in newer projects the way they used to before. There are way too many alternatives now to develop new projects.
1
u/Aware-Science-4549 Student Oct 19 '24
How much time require to learn any language from basic to advanced ?? Really appreciated if anyone wants to share their thoughts
1
u/WalrusDowntown9611 Engineering Manager Oct 19 '24 edited Oct 19 '24
Because there is absolutely nothing wrong in Java.
Java is here to stay and thrive.
1
u/Throwaway4philly1 Oct 19 '24
Because enterprise love java
1
u/kenkaneki22 Oct 19 '24
Most of the legacy app are made in Java so even new guys who work they mainly work on that New apps also use Java if count any particular apps like data science ones or llm or ai they sluse go and python extensive Front end we all know js one way or another either react typescript or next.js
1
u/Cunnykun Oct 19 '24
What I learn from others.. new technologies are great but once your project becomes big and need scalability .. you need either java or .net
There is no escape..
Java won't go anywhere.. its works and is fast and reliable .
1
u/AsliReddington Oct 19 '24
It your engineering managers to blame. There is no internal leaderboard of approaches or cost efficient implementations that they're bothered with.
1
u/musicmeme Full-Stack Developer Oct 19 '24
First movers advantage
1
u/Badson_Gaming Oct 19 '24
JAVA is very crucial for backend of Banks due to its security. Almost all banks use JAVA in some way for the backend. Also well established orgs have lots of code. Why would they spend so much money again for re-writing stuffs. It will be expensive, it will introduce new bugs and problems. It will be a total hassle. Also recently java got a lot better. The only problem with JAVA that I don't like? You have to write a lot lol.
1
u/Southern-Reveal5111 Oct 19 '24
Rust is not common, only a few companies use rust. Python is not used in large projects due to low performance and weakly typed language. Most companies use go lang for microservices.
Java is good, but cost of maintenance is high. Due to cheap labor and incompetent management, Indian companies still use Java.
1
u/Additional-Stable-50 Oct 19 '24
Java is bad. But JVM is Magic.
1
u/chrysantheknight Oct 19 '24
Java is basically the most used language at Google at par with C++, it's not just an Indian thing
1
u/prophet-of-solitude Oct 19 '24
Java is better for enterprise projects
1
u/svmk1987 Oct 19 '24
It isn't just India..java is very commonly used in larger tech companies everywhere. The java ecosystem is very mature, scales very well, and has an incredible toolset, and works well with large enterprises. Tbh, you should stop thinking of java as a legacy programming language and platform.
1
u/conquer_bad_wid_good Tech Lead Oct 19 '24
KOTLIN is beautiful - I would never write java ever again including Backend.
1
u/cryovenocide Oct 19 '24
Tooling, skill pool, awareness, community, maturity, Vendor lock-in etc. Java has all of these and at a really decent level too, I was a.net dev, and .net has an adoption just like java, plus the vendor lock in (Oracle or MS) is very real, so real infact if you are a java/.net dev and have worked with them for a few years you have friends and connections who have worked with them. So if you are going to build a new project, you already know a domain which is already decent enough, people and tools to effectively build in it. And unlike other langs, 2 big companies are trying to keep you in their ecosystem with everything tailored just for them.
Go/Rust/Python/JS etc. are great but tbf they aren't that mature yet, by that i mean there's common features missing from their biggest libraries and even their biggest libraries don't have that big a community, meaning less help to find, less people to find and less already existing stuff to build on. Sure, JS and python are good enough but Java was there when even Javascript wasn't, Java was booming even before JS did and it still looms over us. For an average dev and an average PO, who doesn't really have the knowhow to delve deep into the technical mess of a language, platform and features, Java is a goldmine, it offers everything on a plate, though granted, they realise only after the fact that it might have been better to use another slimmer toolstack and spend the initial time researching and tinkering and enjoy a better experience debugging or iterating on the project than having a smooth get-in and building and a hellish time debugging or iterating or trying to move away from MS or Oracle and their 100 different licenses (MS does, with Azure, VS, MSO etc. Idk about Oracle).
And lastly, the huge technical debt incurred upon us all with Java legacy systems is baffling, that's why big companies which used Java/.Net in the last decades are stuck working with it, they need devs for not only migrating the old stack into newer stacks (And thereby accepting the work needed to get everything up and running, and deployed in them), but they would still need them to fix and add new features, so it's like no matter what they will need Java devs, they can't just up and change their whole infrastructure, people and everything else. Fortunately newer companies and small teams, independent devs and the like don't need to worry about any of it, they can iterate fast, spend days mindcrunching on how best to use their toolset for the task, learn fast and change directions and not worry about any of the issues big companies face, and then enjoy a better time later on. (JS and python are shit in this regard imo but that's a whole another story)
1
u/sayzitlikeitis Oct 19 '24
Java has servlets and had them long before scaling tech reached all the other more fashionable languages like Python.
1
u/_daithan Oct 20 '24
Java is still good for micro services
1
u/Lonely-Loquat-508 Oct 20 '24
Companies that managed to survive decades in IT are still using Java. That's why,
1
u/M1cHa3LScARn Oct 20 '24
I believe Java would have been obsolete if it was not for the Java 8 update. Java 8 literally saved Java itself.
1
u/Sensitive_Sleep_734 Oct 20 '24
cuz it has stood the test of time. java is legacy, so available resources both technical & manpower. "if it works, don't fix it." but now that newer tech is arriving, and standing the test of time, java will be replaced eventually in specific areas where there are better programming languages that can achieve better than what java does. ex - for ml purposes, python3 is more popular than java
1
u/__lost__star Oct 20 '24
Once my manager told me that java is a foolprrof language it is not for smartest of devs out there, it’s deisgned such that no one can easily fuck up the codebasebowing to strong type consistency, abstractions and enforcement of OOPS
1
u/ClinkzBlazewood Oct 20 '24
You take a view of all the tech projects in the world the split is 30% Java and 30% python. I suppose enterprise legacy applications have more java. Shit will change but will take years.
1
u/_Makky_ Oct 20 '24
Easily available hence easy choice hence easily available...
1
u/platypusPerry245 Oct 20 '24
It's not just India's software industry
1
u/electr0de07 Oct 20 '24
Cross platform native app development.
1
u/[deleted] Oct 20 '24
Java , Learn Java.... And it pays. Highest paying developer jobs are in Java
1
u/reponem906 Software Engineer Oct 21 '24
Java has a huge developer base backing it up. Its constantly being upgraded to match any newer standards. Open Source projects and libraries which are easy to implement keep on getting added to the repositories. Spring keeps on being upgraded. It is moving along with the world itself. Its keeping up with the world. Why wouldn't it he dominant?
-2
u/[deleted] Oct 19 '24
Popularity != Demand.
0
u/[deleted] Oct 19 '24
[deleted] — view deleted comment
8
u/[deleted] Oct 19 '24 edited Oct 20 '24
[removed] — view removed comment
2
u/[deleted] Oct 19 '24
[removed] — view removed comment