In programming, each variable each variable has a scope. scope of variable defines how variable accessible within the program or across classes.
Popular Post: Java
Recursion is a process by which a function or a method calls itself again and again is called the recursive function.
In Java, OOP concepts include abstraction, encapsulation, inheritance and polymorphism. OOP provides a clear structure for the programs.
In Java, Everything is associated with classes and objects, along with its attributes and methods.
In Java, class attributes are variables within a class. You can access attributes by creating an object of the class.
A Method provides information about, and access to, a single method on a class or interface.
A constructor in Java is similar to a method that is invoked when an object of the class is created. It has the same name as its class and is syntactically similar to a method.
In Java, access modifier is used to set the access level for classes, attributes, methods and constructors.
Encapsulation in Java is a mechanism of wrapping (methods) code and data (variables) together into a single unit.
A java package is a group of similar types of classes, interfaces and sub-packages. There are many built-in packages such as java, lang, awt, javax, swing etc.
In Java, Inheritance is an important mechanism of OOP. Java Inheritance is a mechanism in which one class acquires the property of another class.
In Java, polymorphism means having more than one forms. We can define polymorphism as the ability of a message to be displayed in more than one form.
Java inner class or nested class is a class that is declared inside the class or interface. The purpose of nested classes is to group classes that belong together.
In this tutorial we will discuss the important features of Java is Abstraction. Abstraction is the process of selecting data to show only the relevant information to the user.
In Java, an interface is a blueprint or template of a class. It is a collection of abstract methods that is used to group related methods with empty bodies.
Java enum is a special kind of Java class that represents a group of constants. To create an enum, use the enum keyword and separate the constants with a comma.
The Scanner class is used to get user input, and it is found in the java.util package. Java Scanner class allows the user to take input from the console.
Java provides the Date class available in java.util package, this class encapsulates the current date and time.
Java ArrayList class uses a dynamic array for storing the elements. It is same like traditional an array with no size limit. So, it is much more flexible than the traditional array.
Linked List is a part of the Collection framework present in java.util package. It inherits the AbstractList class and implements List.