Java is a programming language that is a fusion of two earlier languaves, C++ and Smalltalk. It is intended to look similar, on its surface, to C++, so that it is easy for C++ programmers to learn. But under the hood, it is much more like Smalltalk. So you can say that Java is Smalltalk with C++ syntax.
Important rule: Java has a rigid language. Use only features that you have learned. Do not try to make up the language as you go and hope that it is right.
Java is a free-form language. That means that
Places where the free-form rule is not in effect include