Iqra Technology

Java Inheritance

❮ Previous Next ❯ Inheritance in Java What is Inheritance? Inheritance is a fundamental concept in object-oriented programming (OOP). It allows one class to inherit the properties and behaviors of another class, creating a parent-child relationship between the classes. How Does It Work? In Java, you can create a base class (or parent class) with […]

Java Inheritance Read More »

Java Properties

❮ Previous Next ❯ Properties in Java Java does not have properties like C#, but it provides a similar concept using private fields and public getter and setter methods. The idea behind using getter and setter methods in Java is similar to the concept of properties in C#. These methods allow controlled access to the

Java Properties Read More »

Java Array class

❮ Previous Next ❯ Array Class in Java Java provides the java.util.Arrays class to handle various array-related operations. This class offers methods for manipulating, searching, and sorting elements of an array. The Arrays class in Java serves as a utility class to work with arrays, making it easier to perform common operations.Below are the commonly

Java Array class Read More »

Java Varargs

❮ Previous Next ❯ Java Varargs If you have been told to buy fruits for 100 rupees then you will have to find out which fruits you can buy based on your budget. In this scenario we do not know which fruits you will be buying hence you don’t know how many fruits you’ll need

Java Varargs Read More »

Java Arrays

❮ Previous Next ❯ Array in Java In Java, an array is a collection of elements of the same type, stored in contiguous memory locations, and each element can be accessed using an index. The index starts from 0, meaning the first element is at index 0, the second at index 1, and so on.

Java Arrays Read More »