You are on page 1of 1

OOPS through Java LAB

Assignment 1
Part A
Write and execute the following programs in Java

1. Write a hello world program


2. Simply Print Integers
3. Compute area of circle
4. Check Whether a Number is Even or Odd
5. Check Whether a Number is Prime or Not
6. Display Fibonacci Series
7. Check Armstrong Number

Part B
Write and execute the following programs in Java

1. Check Whether a Number is Palindrome or Not


2. Check Whether a Number is Palindrome or Not
3. Display Factors of a Number
4. Count Number of Digits in an Integer
5. Find GCD of two Numbers
6. Create Pyramid and Pattern
7. Linear Search program
8. Binary Search program
9. Quick sort program
10. Display Prime Numbers Between Two Intervals
11. Check Whether a Number can be Expressed as Sum of Two Prime Numbers
12. Display Prime Numbers Between Intervals Using Function

You might also like