- Information
- AI Chat
This is a Premium Document. Some documents on Studocu are Premium. Upgrade to Premium to unlock it.
Was this document helpful?
This is a Premium Document. Some documents on Studocu are Premium. Upgrade to Premium to unlock it.
Java Programming Exercises With Solutions (PDF)
Course: Java programming (CSC1016S)
174 Documents
Students shared 174 documents in this course
University: University of Cape Town
Was this document helpful?
This is a preview
Do you want full access? Go Premium and unlock all 44 pages
Access to all documents
Get Unlimited Downloads
Improve your grades
Already Premium?
https://masterprogramming.in/
1
Index
Q .no. Questions Page no. Remark
1Write a program that implement the concept of Encapsulation. 03-04
2Write a program to demonstrate the concept of function overloading of
Polymorphism. 05-06
3Write a program to demonstrate concept of construction overloading of
Polymorphism. 07-08
4Write a program the use Boolean data type and print the prime number
series up to 50. 09
5Write a program to print first 10 number of the following Series using
Do-while Loops 0,1,1,2,3,5,8,11.. 10
6Write a program to check the given number is Armstrong or not 11-12
7Write a program to find the factorial of any given number. 13
8Write a program to sort the element of One Dimensional Array in
Ascending order 14
9Write a program for matrix multiplication using input/output Stream. 15-16
10 Write a program for matrix addition using input/output Stream. 17-18
11 Write a program for matrix transpose using input/output stream class. 19-20
12 Write a program to add the element of Vectors as arguments of main
method(Run time ) and rearrange them, and copy it into an array. 21-22
13 Write a program to check that the given String is palindrome or not. 23-24
14 Write a program to arrange the String in alphabetical order. 25-26
15 Write a program for StringBuffer class which perform the all methods
of that class. 27-28
16 Write a program to calculate Simple interest using the Wrapper class. 29
17 Write a program to calculate Area of various geometrical figures using
the abstract class. 30-31
18
Write a program where Single class implements more than one
interfaces and with help of interface reference variable user call the
methods.
32-33
19 WAP that use the multiple catch statements within the try-catch
mechanism. 34
20 WAP where user will create a self- Exception using the “throw”
keyword. 35
21 Write a program for multithread using is Alive(), join() and
synchronized() methods of thread class 36-37
22 Write a program to create a package using command and one package
will import another package. 38-39
23 Write a program for JDBC to insert the values into the existing table by
using prepared statement. 40-41
24 WAP for JDBC to display the records from the existing table. 42-43
25 WAP for demonstrate of switch statement ,continue and break. 44-45
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.