coderz.py

Keep Coding Keep Cheering!

Abstract class vs Concrete class

 Following are the important differences between an abstract class and a concrete class. Sr. No. Key Abstract Class Concrete Class 1 Supported Methods Both abstract and concrete methods can be found in an abstract class. Only concrete methods are allowed in a concrete class. The class is abstract, even if it only has one abstract […]

June 11, 2022 | Java | No comments

Regular class vs static nested class

Comparison between a normal or regular class and a static nested class. S.NO Normal/Regular inner class Static nested class 1. Without an outer class object existing, there cannot be an inner class object. That is, the inner class object is always associated with the outer class object. There may be a static nested class object […]

June 11, 2022 | Java | No comments

Java object creation methods

Everything revolves around the object in Java, which is an object-oriented language. An object represents a class’s runtime entity and is required to call the class’s variables and methods. A Java object is a member of a Java class (also known as an instance). There is an identity, a behavior, and a state for each […]

May 8, 2022 | Java | No comments

Advertisement