JAVA Tutorials

Method Overloading in Java : Free Java Tutorials

Method overloading falls into the category of static polymorphism which is also called compile-time polymorphism. Two methods are said to be overloaded methods if and only if both methods have the same name but different argument types. Method overloading reduces the complexity of programming. In Java, method signature consists of method name followed by names …

Method Overloading in Java : Free Java Tutorials Read More »

Data Hiding and Abstraction in Java : Free Java Tutorials

Data Hiding and Abstraction are two of the most important features of Object Oriented Programming in Java. These two features are the main reason behind the security and maintainability that Java brings. We will understand in detail about these two features in this tutorial. Data Hiding in Java The internal data of any class should …

Data Hiding and Abstraction in Java : Free Java Tutorials Read More »

Deprecated Methods of Thread Class in Java : Free Java Tutorials

There are three deprecated methods in the Thread Class as of now. A deprecated method is the one that is discouraged from practice by programmers, typically because it is dangerous, or because a better alternative exists. We will see in detail about such methods in this tutorial. Java multithreading concept is implemented by using the …

Deprecated Methods of Thread Class in Java : Free Java Tutorials Read More »

Deadlock and Starvation in Java : Free Java Tutorials

Deadlock and Starvation are two very important concepts in Java. Starvation occurs when two or more threads get blocked and wait for each other for locks or resources. Deadlock is the extreme version of starvation where threads wait for an infinite amount of time and program execution reaches an impasse. If two threads are waiting …

Deadlock and Starvation in Java : Free Java Tutorials Read More »