Ime: 3 Hours Max. Marks 100 Aim & Algorithm Program& Result MCQ Viva-Voce Record Total
Ime: 3 Hours Max. Marks 100 Aim & Algorithm Program& Result MCQ Viva-Voce Record Total
Third Semester
Computer Science and Engineering
CS8383 - Object Oriented Programming Laboratory
Program&
Aim & Algorithm MCQ Viva-Voce Record Total
Result
20 45 15 10 10 100
Write a Java program that reads a file name from the user, displays
8. 830119104041 8.
information about whether the file exists, whether the file is
readable, or writable, the type of file and the length of the file in
bytes.
Write a java program that implements a multi-threaded application
9. 830119104042 9.
that has three threads. First thread generates a random integer every
1 second and if the value is even, second thread computes the
square of the number and prints. If the value is odd, the third thread
will print the value of cube of the number.
Write a java program to find the maximum value from the given
10. 830119104043 10.
type of elements using a generic function.
a) Write a Java program that reads a file and displays a file and
15. 830119104048 15.
displays the file on the screen, with a line number before
each line.
b) Write a Java program that displays the number of characters,
lines and words in a text file.
i) Create a Java program that finds the maximum value based on the
20. 830119104054 20.
given type of elements using generic functions in java.
(i) Perform the following operations by using the Java program for
26. 830119104702
file handling process.
Get the file name from the user. Display the information about the
file with various properties like Availability of the file, Readable or
Writable or both, type of the file and length of the file in bytes.