In this tutorial we are going to check wheather loaded class is an interface definition or class definition . To check weather the .class file is as interface definition or
Package is collection of classes , interfaces and sub packages. Package must be a first statement of a class. To get package details getPackage() method is given in java.lang.Class .
In java, many modifiers are there, those are: 1) private2) protected3) public4) default5) Abstract6) Final7) Synchronised8) Volatile9) Static10) Native11) Transient default is not a keyword. If you don’t specify any
We can create thread in the following two ways . 1) By extending Thread class2) By implementing Runnable interface In this tutorial we are going to learn how to create