Is there anything that java cannot do? But other’s can?
I am talking about Java as a programming language.
This is just something to help me about what other programming languages I should also consider learning.
Edit:
Ok, ive been doing java programming for many years and i sometimes have the feeling that I wouldn’t need to learn another one. Java used to be somewhat limited in previous versions like there’s no enums, autoboxing, generics, and many more. I am asking about “Java as a programming language” or maybe we can consider the syntax limitations of java that you guys wish it has. Something about the syntax/features that other languages offer but java doesn’t.
Edit: Thank you for closing this. I wish though that i was given a little more time to make my question a little clearer. Seems like it was closed before my first edit was made.
All general purpose programming languages in use are Turing complete, so in that very rigorous theoretical sense, they have the same power. There’s NOTHING that is computable in, say, C#, but not computable in Java.
In a more practical point of view, though, yes, there are things that other languages can do that Java can’t. It really depends on how you want to pick your nits. Java has no 8-bit unsigned
byte, Java can’t convert anintto abooleanvalue, Java has no first class methods, Java has no pass by reference semantics, etc. None of those would prevent you from getting things done, but they are nonetheless things that Java can’t do that other languages can.As far as learning how to program goes, Java is not a bad choice. It’s practical enough, but can be quite verbose. Rather subjectively, though, there are other more “fun” languages for learning that is just as if not more instructive than Java.
With regards to this remark:
I’m sorry to say that this is a very self-limiting point of view. Learning another language can really expand your mind on what programming is all about. It can also be fun.
Related questions