Programming Languages, Java, Software Development, Software Engineering, Software Architecture.
{} What won’t work is creating a class with the name ‘var’ like so: class var {} // won't work Because ‘var’ is a reserved type name, we can’t use it for the names of any type, class, interface, etc. Works with Anonymous classes as well. var example24 = new Object() { String firstName = "John";