I honestly don't know about the "low in memory services" part. The darling of the day is containers, and while containers are less memory than full VMs or independent computers, they typically need hundreds of megabytes each just for disk storage. So it has to be a fairly fat application to outweigh the container's overhead.
In any event, while I've used NodeJS for some microservices myself, I don't think what it's producing is really all that compact. And in my opinion, it's a lot less tidy than a Java webapp bundled in Spring Boot.
Also, of course, if you consider what kind of havoc an insecure microservice could potentially wreak, the Java security architecture holds about the best record around - providing you avoid applets, of course.
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.
I am thinking like in today's market Microservices are very demanding. And seems like apps like low in memory consumption and giving the same features compare to others is booming.
So I think node js is the language which comes as best in those parameters and also it can provide the same features by consuming less memory compare to java.
And also node can handle more requests than Java for the same api build.
So is it true that node js will be the replacement of Java in future?
Anu suggestions are welcome.
Not at all. Java was, and is more robust than Node.js