A constructor should have the name same as the class. Since anonymous inner class has no name, an anonymous inner class cannot have an explicit constructor in Java .8 Oca 2018
Read moreCan we define a constructor in anonymous class Java?
You can’t declare a constructor for an anonymous class , because the name for a constructor must be the same as the name of the class. And since the class in question has no name, you can’t declare a constructor for the class.13 Şub 2012
Read moreHow many inbuilt package are there in Java?
All Packages PackageDescriptionjava.awt.imProvides classes and interfaces for the input method framework.java.awt.im.spiProvides interfaces that enable the development of input methods that can be used with any Java runtime environment.java.awt.imageProvides classes for creating and modifying images.All Packages (Java SE 14 & JDK 14) – Oracle Help Center docs.oracle.com › java › javase › docs › api › allpackages-index
Read more