Core Java Program List 2023 PDF
Core Java Program List 2023 PDF
1 Java Basics
A Write a Java program to swap two variables.
B Write a Java program to print the area of a circle.
C Write a Java program to print the sum (addition), multiply, subtract, divide and remainder of two numbers.
D Write a Java program that takes three numbers as input to calculate and print the average of the numbers.
2 Use of Operators
A Write a Java program to check number is divisible by 7 or not.
B Write a Java program to find maximum from 3 numbers.
C Write a Java program to read day code and display day name using switch case.
D Write a Java program that takes a number as input and prints its multiplication table up to 10.
E Write a Java program and compute the sum of the digits of an integer.
3 Java Data Types
A Write a Java program to find sum of array elements of size 10.
B Designed a class SortData that contains the method asec() and desc() to sort array elements.
C Find the smallest and largest element from the array
4 Methods and Constructors
A Designed a Box class to find volume of a Box using class method.
B Designed a Box class, initialize object using constructor and find volume of a box.
C Designed a Box class with multiple constructor to initialize class object and find volume of a box.
5 Inheritance
A Write a java program to implement single level inheritance.
B Write a java program to implement multilevel inheritance
C Write a java program to implement multiple inheritance
6 Packages and Arrays
A Create a package MyMath, Add the necessary classes and import the package in java class.
B Write a java program to add two matrices and print the resultant matrix.
C Write a java program for multiplying two matrices and print the product for the same.
7 Vectors and Multithreading
A Write a java program to implement the vectors.
B Write a java program to implement thread life cycle.
C Write a java program to implement multithreading.
8 File Handling
A Write a java program to open a file and display the contents in the console window.
B Write a java program to copy the contents from one file to other file.
9 Exception Handling
A Write a java program to implement exception handling.
B Write a java program to implement exception handling with mulitple catch.
10 GUI Programming.
Construct a simple calculator using the JAVA awt with 3 text fields (the 3rd text field should be read-only)
A
and 4 buttons to add, subtract, multiply, divide with minimum functionality.
Create an application using Java awt that accepts Principal Amount, No. of Years & Rate of Interest from 3
text fields, when you click “Calculate Interest” button, the calculated interest should be displayed in a read-
B
only text field. When you click on “Final Amount” button, the final amount by adding principal amount and
interest should also be displayed in a read-only text field.
C Design a AWT program to print the factorial for an input value.