coderz.py

Keep Coding Keep Cheering!

Java.lang.Class class in Java

Java includes a class called Class in the java.lang package. In a running Java application, instances of the class Class represent classes and interfaces. Class objects also represent the primitive Java types (boolean, byte, char, short, int, long, float, and double), as well as the keyword void. It has no public builder. The Java Virtual […]

August 29, 2022 | Java | No comments

Sub packages in Java

The subpackage is a package within a package. It should be developed to further categorize the package. Sub packages are identical to packages, with the exception that they are defined within other packages. Sub packages are similar to subdirectories, which are directories within directories. Sub packages in themselves are packages, so you have to use/access […]

June 3, 2022 | Java | No comments

Packages in Java

In Java, a package is a container for a collection of classes, sub-packages, and interfaces. The package keyword is used to create a package in java. Packages are used for the following purposes: Keeping naming conflicts at bay. For example, in two packages, college.staff.cse.Employee and college.staff.ee.Employee, there could be two classes named Employee. Making it easier to […]

June 3, 2022 | Java | No comments

Advertisement