Author: Shekhar Sharma

String methods in java

String methods in Java

There are numerous string methods in java which are helpful for performing different and useful operations on Strings. Here is the table containing all the methods present in Strings. You can click on the methods name...

String in java

String in java

String is nothing but a sequence of characters. For example, “Book” is a string which is having sequence of 4 characters. There is a lot of importance of String and its usage in any programming language. In...

Call by value

Call by value in java

In java, we have only ‘Call by value’, not ‘Call by reference’. In ‘Call by reference’ the address of the value is passed in the arguments of the methods, so if any changes made...

Encapsulation in java

Encapsulation in java

Encapsulation is one of the four fundamental OOP concepts. Remaining three are inheritance, polymorphism, and abstraction.In the previous post, we have studied the Abstract class and interface. In this post, we will focus on encapsulation....

Abstract class and Interface

Abstract class and Interface

In the previous post, we have seen Polymorphism which is one of the concept of Object Oriented Programming. Before moving to explanation of Abstract class and Interface , let’s understand the Abstraction first. What...

Polymorphism in Java

Polymorphism in Java

In the previous post, we have seen Initializer Block.In this post , we will see what is polymorphism in Java. In object oriented programming, we know it is best at providing the reusability of the...

Initialization block in java

Initialization block in java

Initialization blocks as name says can be used to initialize the objects or data members in java. An initialization block contains a group of statements enclosed in a pair of braces. Syntax : {...

super keyword in java

super keyword in java

In the previous session, we have seen the usage of method overriding. In this session, we will see how to use the keyword super in java programming. The super keyword is used to refer immediate parent class members....

Method Overriding in Java

Method Overriding in Java

  In parent class we have a method, and the same method is declared in child class is known as method overridding. Before we have seen method overloading, now we will discuss method overriding in...

Method Overloading in java

Method Overloading in java

Every class has one or more methods which are used to perform different functionalities in the application. Can we have two methods having the same name in one class? Yes, we can have two or more methods...