Java program to Count the Total number of Characters in a String

In this post you will see the basic java string program that count the total number of characters in a string. Here, first we understand that what is string, String: String is a sequence of characters; string is immutable that means once we created a string, we can’t change its value. In Java the String … Read more

Java Program to Display Fibonacci Series

In this post we will explore how to generate Fibonacci Series in java and understand the logic behind it. Fibonacci Series: In Fibonacci series, the next number is the sum of previous two numbers. for example 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55 etc. Solutions: There are two ways to display … Read more

Java Program to Get Input from User

In this post we will learn how to get input from user in java. Java User Input: The Scanner class is used to get user input, and it is found in java.util package. we use the scanner class, to create an object of the scanner class and use any of the available methods found in the … Read more

What Is Exception Handling And How Many Types Of Exceptions Are There In Java?

Here we will discuss What Is Exception Handling And How Many Types Of Exceptions Are There In Java? The exception is a situation in OOPs programming where further execution of the program is not possible due to some error, Or we can say when some error occurs in execution. To handle such conditions we introduced … Read more

%d bloggers like this: