Syntax #
- Class variables: Variables defined within the class with the
static
keyword - Constructors should have the same name as the class
- A class can have multiple constructors
final
final
variable makes it a constantfinal
method prevents overridingfinal
class prevents inheritance
- There are
enums
in Java - You have to mark a method with
@Override
if you are overriding it in Java