Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
55 views

Java Assignment 1

This document contains 20 items describing programming tasks and exercises. Some involve writing code to perform common operations like sorting arrays, finding matrix transposes, reversing strings, and checking for palindromes. Others involve object-oriented concepts like creating classes, interfaces, abstract classes and implementing inheritance. Additional tasks involve multi-threading, exceptions, file input/output, databases, GUI programming using AWT, Swing, and creating simple web applications using servlets and JSP.

Uploaded by

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

Java Assignment 1

This document contains 20 items describing programming tasks and exercises. Some involve writing code to perform common operations like sorting arrays, finding matrix transposes, reversing strings, and checking for palindromes. Others involve object-oriented concepts like creating classes, interfaces, abstract classes and implementing inheritance. Additional tasks involve multi-threading, exceptions, file input/output, databases, GUI programming using AWT, Swing, and creating simple web applications using servlets and JSP.

Uploaded by

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

S

Title Page No
N
1 WAP to sort the elements of an array in ascending order.
2 WAP to find the transpose of a given matrix.
3 How to reverse a given String? (Without using a pre-defined function)
4 WAP to How do you check if a given String is Palindrome or not
Create a package mca1 which will have 2 classes as class Mathematics
5 with a methods to add two numbers, add three float numbers and class
Maximum with a method to find maximum of three numbers.
6 Write a Java program to create Animal interface that contains run() and
eat() method. And implement methods in Dog and Cat class.
Write a Java program to create an abstract class Animal that contains
7 non abstract run() and abstract eat() method…Derive two classes Dog
and Cat from it.
8 Write a Java program to test any five of standard exception
9 User-defined exception

10 Write a Java program to create a Thread by extending the Thread class.


And print the name of currently executing thread.
11 Write a Java program to create a Thread by Implementing the Runnable
Interface. And print the name of currently executing thread.
Write a multithreaded program to print even and odd numbers. Create
12 two threads, one thread prints even number and second thread prints odd
number
13 Write a code to remove duplicates from Array List in Java.
14 Write a code to sort a linked list and Reverse a linked list in java.
15 Write a Java program to copy the contents of a file to another file.

16 Write Java AWT code to accept Student information and display


Student details on the Screen.
17 Write a JAVA program to design a screen using Swing to perform
String operations.
18 Write a Java code to Read, Insert, Update and Delete any record from
the database.(Employee table).
19 Write a Java Servlet Application for login page with proper validations.
20 Write a Java program to design Registration page using JSP

You might also like