Tutorial Archive
Features : The JVM schedules using a preemptive , priority based scheduling algorithm. All Java threads have a priority and the thread with he highest priority is scheduled to run by the JVM. In case …
A class that is declared inside a class but outside a method is known as member inner class. Invocation of Member Inner class From within the class From outside the class Example of member inner …
A class declared inside a class is known as nested class. We use nested classes to logically group classes in one place so that it can be more readable and maintainable code. Moreover, it can …
The throws keyword is used to declare an exception. It gives an information to the programmer that there may occur an exception so it is better for the programmer to provide the exception handling code …
The final is a keyword. This is similar to const keyword in other languages. This keyword may not be used as identifiers i.e. you cannot declare a variable or class with this name in your …
An interface is a collection of methods that have no implementation – they are just created, but have no functionality. An interface is a bit like a class, except you can only declare methods and …
Compile time polymorphism or static method dispatch is a process in which a call to an overloading method is resolved at compile time rather than at run time. In this process, we done overloading of …