JAVA Tutorials

Object Type Casting in Java : Free Java Tutorials

Object Type Casting in Java says that one object reference can be typecast into another object reference. We can use parent reference to hold child object. For example, Object class reference can hold String class object. Object str = new String(); We can also use interface reference to hold implemented class object. Runnable thread = …

Object Type Casting in Java : Free Java Tutorials Read More »

Cohesion and Coupling in Java: Free Java tutorials

Cohesion and Coupling are two of the most important Object-Oriented Programming concepts apart from Inheritance, Polymorphism, and Encapsulation. We will discuss and understand cohesion and coupling in this tutorial. Coupling in Java The degree of dependency between the components is called coupling. If the dependency is more, then it is considered as tight coupling. And …

Cohesion and Coupling in Java: Free Java tutorials Read More »

Variable-arguments Method Overriding and Variable Resolution in Java : Free Java Tutorials

In this article, we will understand variable resolution in Java. We will also see whether variable overriding is possible in Java or not. Then we will also take an example and understand of method overriding which involves variable arguments. We can override variable arguments method with another variable arguments method only. If we are trying …

Variable-arguments Method Overriding and Variable Resolution in Java : Free Java Tutorials Read More »