What is an exception in java? handle exception in java Java – exception. An exception (or extraordinary event) is a problem that occurs during the execution of a program. When an exception occurs, the normal flow of the program is Read more…

# Category: java_courses

Find the area of triangle and rectangle in java Week 6 a)Aim: To Write java program to create a super class called Figure that receives the dimensions of two dimensional objects. It also defines a method called area that computes Read more…

Missing Number in Java The set of number is number will be given so we have to find the number which is missing inside the the set example number={1,2,3,4,5,7,8,9} then we have to find the missing number from the Read more…

Java greater number using loop Each time my output prints the last number given through the scanner as the largest number. The program needs to be modified in a way that it scans through the number I input and Read more…

Java Print function with example | Difference between print () and println () in java Java print Both the print () and println () methods print data on the screen. Basically print () and println () are almost identical with Read more…

What is the Fibonacci series? in java | Displaying the Fibonacci sequence using a loop What is the Fibonacci series? In the Fibonacci series, the next number is the sum of the previous two numbers. The first two numbers in Read more…

Program to calculate the area of the rectangle The area of a rectangle is the amount of space occupied by the rectangle. A rectangle can be defined as a plane shape that has two adjacent sides of length. The Read more…

What is a polygon? | Area of Triangle in java What is a polygon? A polygon is any 2-dimensional shape formed with straight lines. Triangles, quadrilateral, pentagon and hexagon are all examples of polygons. A regular polygon is a polygon Read more…

To calculate Area of Circle in java program Area of Circle in java The following Java program to print the area of a circle has been written in five simple different ways, static method, using constructor, Interface, inheritance with sample Read more…

Addition through user input value In this program, you’ll learn to store and add two integer numbers in Java. After addition, the final sum is displayed on the screen. Source code import java.io.*; import java.util.*; class Add { public static Read more…