Sinisterly
Why people think Java is bad and old language? - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: Java, JVM, & JRE (https://sinister.ly/Forum-Java-JVM-JRE)
+--- Thread: Why people think Java is bad and old language? (/Thread-Why-people-think-Java-is-bad-and-old-language)

Pages: 1 2 3 4 5 6 7


Why people think Java is bad and old language? - Mr.Kurd - 01-04-2017

In The Name Of Allah
Al-Salam Alekum
I heard a lot of time Java is bad and old language.
Why Java is bad and old?
I always use Java and it's my favorite programming language.
it's powerfull and easy to learn.
How you think about Java?
Wa Salam Alekum


RE: Why people think Java is bad and old language? - Pikami - 01-04-2017

  • It's not powerful, it's slow and runs in a VM.
  • Constructors can't call each other.
  • No Globals
  • No List Literals
  • Large memory usage



RE: Why people think Java is bad and old language? - Inori - 01-04-2017

Expanding on @"Pikami"'s reply:
  • No multiple inheritance
  • No generic data structure
  • Explicit exception handling
  • Enumeration types are patchwork
  • Verbose and very boiler-plated

If you like the templating (which I try to avoid when picking a language), learn C#. It's almost identical to Java in terms of syntax, plus it runs with the .NET framework (which is now ported to Linux, yay) and doesn't run virtualized.


RE: Why people think Java is bad and old language? - Dismas - 01-04-2017

I have a personal distaste for the language. @"Inori" gave some decent reasons. I'd even recommend C# over it, as he said.


RE: Why people think Java is bad and old language? - Mr.Kurd - 01-04-2017

(01-04-2017, 09:16 PM)Pikami Wrote:
  • It's not powerful, it's slow and runs in a VM.
  • Constructors can't call each other.
  • No Globals
  • No List Literals
  • Large memory usage

It's powerfull language Smile
constructor can call each other:
http://stackoverflow.com/questions/285177/how-do-i-call-one-constructor-from-another-in-java
You can't call a class but you have public static class intead it so it's global.
Oracle drops collection literals in
JDK 8.
For the last yeah I think.


RE: Why people think Java is bad and old language? - Inori - 01-04-2017

(01-04-2017, 09:50 PM)Mr.Kurd Wrote: It's powerful language Smile

On what basis? Compare it to C++; Java is 12 years younger and C++ still kicks the crap out of it performance-wise. Yes, it's faster than Ruby, but that's really not saying much.

http://stackoverflow.com/a/145559


RE: Why people think Java is bad and old language? - Elf - 01-04-2017

I have no issues with it nor have heard anyone describe it like that :c


RE: Why people think Java is bad and old language? - Mr.Kurd - 01-05-2017

(01-04-2017, 10:12 PM)Inori Wrote:
(01-04-2017, 09:50 PM)Mr.Kurd Wrote: It's powerful language Smile

On what basis? Compare it to C++; Java is 12 years younger and C++ still kicks the crap out of it performance-wise. Yes, it's faster than Ruby, but that's really not saying much.

http://stackoverflow.com/a/145559

please read this:
http://spectrum.ieee.org/computing/software/the-2016-top-programming-languages
http://www.tiobe.com/tiobe-index/


RE: Why people think Java is bad and old language? - Mr.Kurd - 01-05-2017

(01-04-2017, 10:43 PM)Elf Wrote: I have no issues with it nor have heard anyone describe it like that :c

I heard this mellion time.
Old, Bad, Why you learning Java?.


RE: Why people think Java is bad and old language? - Mr.Kurd - 01-05-2017

(01-04-2017, 09:33 PM)Inori Wrote: Expanding on @"Pikami"'s reply:
  • No multiple inheritance
  • No generic data structure
  • Explicit exception handling
  • Enumeration types are patchwork
  • Verbose and very boiler-plated

If you like the templating (which I try to avoid when picking a language), learn C#. It's almost identical to Java in terms of syntax, plus it runs with the .NET framework (which is now ported to Linux, yay) and doesn't run virtualized.

No multiple inheritance:
Because interfaces specify
only what the class is doing,
not how it is doing it. The problem with multiple
inheritance is that two
classes may define different
ways of doing the same
thing, and the subclass can't
choose which one to pick.

No generic data structure:
In Java 7 (and later), you can
make it shorter with the
diamond operator;

I dk for the last three points.
It's fast remember "Write once, run anywhere".
Yeah I know C# but not so much.
Yeah it's near Java but I hate working on .NetFramework it's not good enught.