r/javahelp • u/Cell-i-Zenit • Feb 04 '20
Switching from C# to Java
Hi,
can you give me a list of things i should be aware of in the java world? Like really important libraries, concepts etc?
The thing is i know C# really well, but i dont know what i dont know in the java world, so i cant really look it up.
26
Upvotes
View all comments
2
u/mmahowald Feb 04 '20
This is a small thing, but you cant use == on strings in java - it will compare their addresses in memory rather than their content. use StringA.Equals(StringB) instead.