Character Set

Java Programs




Program [1]

Create a program that will swap the values stored in two variables without using a third variable.


View Solution


Program [2]

Write a program to find the product of 5, 7 and 12 using variables.


View Solution


Program [3]

Write a program using int variables to find the sum of three numbers say 15, 36 and 45 and subtract the result from 100 using variables.


View Solution


Program [4]

Write a program to display the names of five fruits with a single System.out.println(); statement, but in different lines.


View Solution


Program [5]

Write a Java program which accept the radius and height of cylinder and calculate the area of a cylinder.


View Solution