Types of Constructors in Java

When you listen to the name Constructor, then what comes to your mind? Something like making or creating or building something. A constructor is also similar, it initializes an object immediately after its creation. You can compare constructors with the methods. They are similar while differing in some aspects. Constructors don’t have any return type, unlike the methods. Also, the Constructor name must be the same as the class name, which is not possible when declaring methods. 

Rules for

Read more

What is Object Oriented Paradigm in Java?

The term Programming paradigm means the methodology for writing program codes. In general, two paradigms govern how you can construct a program. These two ways are: a process-oriented model an object-oriented model Many programming languages support both the paradigms like python. Python allows the users to code using both process-oriented and object-oriented methodologies. However, Java is exclusively object-oriented. What is Object Oriented Paradigm The object-oriented programming paradigm (OOP) has a completely different approach to problem-solving. It does not focus on the problem

Read more

What are the Advantages of Packages in Java?

Half of the programming world love java language. Java is an open-source with enormous features that make java convenient. Java is platform-independent, which gave rise to the concept ‘wora’ means one’s you’ve written your application, it can run across any device or machine. Out of all the features, java provides the programmer’s the concept of packages. What are Packages? Packages are an assemblage of classes, subpackages and interfaces categorized in divergent directories according to their functionality, usability, and the categories

Read more

What are the Various Access Specifiers for Java Classes?

Access Specifiers restricts access to classes, interfaces, methods, and fields in Java. It sets the domain of the specific Field, Method, or Class. In simple terms, the specifiers determine whether the particular method or field can be accessed by another sub-class or Class. Access Specifier and Access Modifier, both the terms are used simultaneously and, they mean the same thing.  Before we talk about Access Specifiers or Access Modifier type, first we need to understand what is the use of

Read more

How Many Types of Memory Areas are Allocated by JVM?

JVM or Java Virtual Machine is a program that takes the Java byte code that is with a file.Class and converts the byte code into machine understandable language. Here byte codes indicate, a highly optimized set of instructions designed to be executed by the Java runtime system. JVM is also a significant part of JRE that is Java Runtime Environment. The other two parts of JRE are core classes and supporting files. We also know the applications of JAVA as WORA,

Read more