Author name: Nisha Yadav

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 …

What are the Advantages of Packages in Java? 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, …

What are the Various Access Specifiers for Java Classes? Read More »

Difference between Constructor and Method in Java

Java is an Object-Oriented Programming language. Therefore, the data and the member functions in Java are present in the classes. The classes in Java contain both constructors and methods as well. Let’s see in detail about methods and constructors and their differences. Constructor The purpose of constructors is to initialize the objects, which are the …

Difference between Constructor and Method in Java Read More »

What is the Purpose of Default Constructor in Java

In object-orientated programming, the constructor plays an important role. A constructor is similar to the member functions of the class. However, their signature and purpose differ. The constructors have no return type, unlike the methods. Also, the constructor name always matches with the class, which makes it easily identifiable. In general, there are three types …

What is the Purpose of Default Constructor in Java 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 …

How Many Types of Memory Areas are Allocated by JVM? Read More »

Advantages and Disadvantages of Inheritance in Java

Inheritance is one of the pillars of the Java programming language. Learning OOP (Object Oriented Programming) without knowing and understanding the concept of Inheritance, its pros and cons are incomplete. Inheritance is a process in which a class acquires all the data members and its parent class methods. The basic idea behind it is that …

Advantages and Disadvantages of Inheritance in Java Read More »