A small query related Java
Sorry for the off-topic question. If I have to, I'll delete this thread after I got my answer :) I recently switched from C++ to Java (I had to, because of my college syllabus). I thought it'll be easier to adopt since I know C++ good. But the hello world program was like a nightmare to me. Why do we need put everything inside classes?? When I googled it, it said that everything has to be inside classes, but that doesn't make any sense does it? And as I was progressing, I saw the string data type being "String". It starts with a capital letter! Though, we don't need to include any header files to work with String class. It just looks weird. And, what about semicolons at the end of the classes? And "boolean" could have better been "bool", but that's acceptable though. Can anyone help me with changing my mindset from C++ to Java? And also, suggest me a good side-source to learn the little extras in Java. Like, I was using www.learncpp.com to learn C++ side by side while using sololearn. Thank you already :)