Programming Languages, Java, Software Development, Software Engineering, Software Architecture.
}; example25.firstName = "John"; // won't work The type of a variable declared with ‘var’ is an anonymous class extending an Object. Anonymous classes belong to a group of types called non-denotable types. These types cannot be named and are supported by the JVM but are not exposed to the user.