Category Java

Interface in Java with Example

Java Interface and its implementation classes

An interface in Java is a reference type syntactically similar to a class but declared with the interface keyword. Before Java 8, an interface can have only abstract methods declaration and constants as members. By default, all variables in an…

Java String toUpperCase() Method

Java String toUpperCase() method converts all the lowercase letters of a string into uppercase and returns that upper-cased string. In other words, the toUpperCase() method of String class converts all the characters of a string into uppercase and returns that…

Java Method Overriding Interview Programs

In this tutorial, we have listed the most important top 15 Java method overriding interview programs for practice. Here, you can solve the interview coding questions based on concepts of method overriding, covariant return type, exceptional handling with method overriding,…

Java Method Overloading Interview Programs

Here, we have listed some important Java method overloading interview programs for the best practices. For freshers or having 1 to 3 years of experience, all these programming questions are very important for Java technical test or interviews. If you…

Inheritance Example Program in Java for Practice

In this tutorial, we have listed topic-wise the best collection of inheritance example program in Java with output and explanation. These inheritance example programs are very important for Java interview purposes and technical test. If you practice all these interview…