Convert string to int

String in java is a unique data type and it is the most common data type that is used in programs.  Whatever we place in “ ”(Double quotes) is treated as a string.Suppose we have a string “12345” and we want to convert string to int, Java provides some ways to parse string to int. … Read more

string methods in java

In Java, the String class has a lot of methods that are used to operate string. In this post, we will see some important methods of String class or string methods in java We will cover each method with example and also discuss the best practices of the java string method and string methods in … Read more

String constructor in java

In java, String is the most commonly used data type. It is used in almost every program. We have already discussed many things about the String in java. Like How to create String, what is java substring, mutable string, immutable string?In this post, we will see the java string constructor class. We will not discuss each … Read more

Static class in java

The static keyword in java is the most important and confusing topic. We have already discussed the static keyword in java in a separate post. We have seen the use of a static keyword to make the static variable, static method, and static block. Now we will see how to use a static keyword with … Read more

Static block in java

In this post, we learn about the static block. You must have seen various use of static keyword in java. We have already posted the static variable and static method. So, let’s introduce another interesting topic which is Static Block In Java. Here is the table content of the article will we will cover this topic. … Read more

Static method in java

The Static method in Java is an important concept. But many programmers misunderstood and misused it.  In this post, we will discuss the static method in java with examples so that you can get it easily.  Almost all programmer knows that static methods belong to the class and non-static methods belong to the objects of … Read more

Static variable in java

In the last post, we discussed the static keyword in java. We can use a static keyword with a variable, block, method, and class. In this post, we will discuss the static variable in java. Most of us already knew some things about static, but to get more clarity we will discuss it in detail. … Read more

final, finally and finalize

Java has a lot of keywords that are used for different purposes. In this post, we will discuss, what is the difference between final, finally and finalize keyword in java and when we should use them. It is the most common and tricky question for the interview. I have seen many times many programmers get confused … Read more

Multiple inheritance using interface in java

In java, inheritance is the most important topic. Inheritance is an important concept/feature of Object-Oriented. You must learn about inheritance and its type. The most common question asked in an interview “What is multiple inheritance in Java” and  “Why multiple inheritance is not supported in Java”. In this post, we will see how to achieve … Read more

Multiple inheritance using interface in java

Inheritance in java is the most important topic. Inheritance is an important concept/feature of Object-Oriented. The most common question asked in an interview is “What is multiple inheritances in Java” and  “Why multiple inheritances is not supported in Java”. Here we will discuss it in detail. Here is the table content of the article will … Read more