Java is one of the fastest languages (very close to C/C++). Its memory consumption is also in par with comparable apps written in other languages in comparable conditions.
P.S. “Java is considered as a slowly dying language” by who? Author tries to hide his own bias behind anonymous “somebody”?