0% found this document useful (0 votes)
675 views

Core Java Program List 2023 PDF

The document outlines various Java programs organized into 10 core topics: 1. Java basics programs including variable swapping, calculating area of a circle, and arithmetic operations 2. Programs using operators such as checking divisibility, finding maximum of 3 numbers, and switch statements 3. Programs involving Java data types including arrays, sorting arrays, and finding minimum/maximum elements

Uploaded by

pankaj
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
675 views

Core Java Program List 2023 PDF

The document outlines various Java programs organized into 10 core topics: 1. Java basics programs including variable swapping, calculating area of a circle, and arithmetic operations 2. Programs using operators such as checking divisibility, finding maximum of 3 numbers, and switch statements 3. Programs involving Java data types including arrays, sorting arrays, and finding minimum/maximum elements

Uploaded by

pankaj
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Core Java Program List

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.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy