I think right now is the appropriate time to talk about the superiority of java over every other deprecated language

I think right now is the appropriate time to talk about the superiority of java over every other deprecated language

Other urls found in this thread:

ideone.com/PguhFd
en.wikipedia.org/wiki/Java_processor
twitter.com/SFWRedditGifs

Good idea, let's all list some of the superior functionality, one per post! :^)

1. faster than c and sepples

C is faster, lighter, and generally more enjoyable to use.

[citation needed]

>no proper generics due to type erasure
>no proper collections due to above
>real arrays are possible only with primitive types
>no operator overloading but you can + strings
>you can + strings but can't == them
Just from the top of my head.
It's a fucking trainwreck.

>remove all chances for pajeet to create a mess
>reeeee

If Java had true garbage collection, most programs would delete themselves upon execution

>language designed for an IDE and runs in a JVM
Go is better in just about every way

>b.. but muh generics

I had a problem so i used java
Now i have a problem factory

>real arrays are possible only with primitive types
write your own implementation with a buffer if you really need it for a certain object. not that hard

Java generics are just automatic typecasts anyway, you could do the same work with a C macro.
Java was retarded for adopting the whole "all objects are just references" shit but under such a scenario it's reasonable for == to check identity instead of equality.

>C is faster and lighter
>[citation needed]
And next you'll say: "I was just pretending to be retarded!"

...

Nothing you could write would give Java value types.

Wasn't Java shit pushed mainly because of Android? What happens now that Kotlin is set to dominate Android?

Java basically replaced sepples as the "enterprise" software development language as far back as 2000ish

Can someone explain to me what made OOP so popular? Like what does it make easier to develop in comparison with imperative languages?

>requires a whole virtual operating system to run on a operating system
>best language
Use C++

It's basically the best of procedural and functional programming mixed together.

OOP makes it easier to develop """enterprise""" grade software.

LOC as a measurement of code value.

Literally every real programs out there, find one written in java find a faster one writen in C/C++, no exceptions.

>'test' + 'string' != 'teststring'
so this is the power of addition...

>calling concatenation addition
>failing to understand reference semantics

>Wasn't Java shit pushed mainly because of Android?
no

>requires a whole virtual operating system to run on a operating system
is this a meme or are you actually this retarded?

find me a distributed database faster than Apache Cassandra, with all the features and written in C/C++

this evaluates to false ideone.com/PguhFd

public class StringEquality
{
public static void main(String[] args)
{
System.out.println(stringTester("nig", "nog") ? "true" : "false");
}

public static boolean stringTester(String str1, String str2)
{
return str1 + str2 == "nignog";
}
}

your head must be really far up your ass to imply that your lack of knowledge of absolute basics of a language is a flaw of the language

This

>is this a meme or are you actually this retarded?
what is jvm...
compiler language are already portable enough, java shouldn't even exist

just pointing out that == is useless for strings and
>this evaluates to false ideone.com/PguhFd
just makes things worse.

1) The JVM is not an operating system
2) The JVM can be implemented in hardware, hardware JVMs do actually exist
3) You can compile Java to native code if you want

>hardware JVMs do actually exist
More info on this?

You don't know what an OS is , do you?

>just pointing out that == is useless for strings and
What did you expect? == checks the object reference

The same thing happens in C
bool stringTester(const char* str)
{
return str == "nignog";
}

int main()
{
printf(stringTester("nignog") ? "true" : "false"); // most likely true because "nignog" points to the same memory as "nignog" in stringTester, unless your compiler is retarded

char str[7];
strcpy(str, "nignog");
printf(stringTester("nignog") ? "true" : "false"); // false because they don't point at the same reference
}

Do you? A virtual machine is not a virtual operating system.

en.wikipedia.org/wiki/Java_processor

I agree, that's a good choice since Java went the way of making all objects reference types.

== on strings is basically worthless for that reason.

if the only reason for it to exist was portability then it probably wouldn't

C++ once again the superior language.

C++ would be perfect if it had optional garbage collected pointers.

It will never have that, but you can have D for that if you want. Maybe Rust has something too, I don't know enough Rust to know.

D is excessively reliant on GC desu.

How can it be that when it didn't originally have one? You're just making shit up, aren't you?

Learn to use smart pointers it's 2017.

I love RAII personally, if I had to choose I'd rather have RAII than GC. finally blocks or using statments are ugly hacks that exist because of GC's shortsightedness.

But, it has its uses.

underrated

top kek

8/8 post, would bang

duuude, it's quite, like opposite of functional, as objects represent state itself. Don't be confused when Bjarne adds lambdas, that it has something to do with the functional paradigm

Mutability of state isn't the distinguishing feature of the functional paradigm, although it's often a consequence.
Code as first class data are the important part, and objects with virtual functions largely fit the bill. The relationship between objects and closures, classes and lambdas is not an incidental one.

...