0% found this document useful (0 votes)
8 views1 page

Lab internal-2 QP

Uploaded by

Gopi Krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

Lab internal-2 QP

Uploaded by

Gopi Krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

II B.

Tech I sem Lab Internal Examination- DEC-2024


Object Oriented Programming through JAVA SET– 1
___________________________________________________________________________________

1. Write a java program that reads a file name from the user, and then displays information about
whether the file exists, whether the file is readable, whether the file is writable, the type of file
and the length of the file in bytes.
2. Explain about ArrayList Collection Class with example.

II B.Tech I sem Lab Internal Examination- DEC-2024


Object Oriented Programming through JAVA SET – 2
___________________________________________________________________________________

1. Write a java program that displays the number of characters, lines and words in a text file.
2. Explain about String Tokenizer Collection Class with example?

II B.Tech I sem Lab Internal Examination- DEC-2024


Object Oriented Programming through JAVA SET – 3
___________________________________________________________________________________
1. Write a java program that implements a multi-thread application that has three threads. First thread
generates 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
2. Write About Thread life cycle in Multithreading?

II B.Tech I sem Lab Internal Examination- DEC-2024


Object Oriented Programming through JAVA SET – 4
___________________________________________________________________________________
1. Write a Java program to swap two different types of data using Generics.
2. Describe the steps used to connecting to a database?

II B.Tech I sem Lab Internal Examination- DEC-2024


Object Oriented Programming through JAVA SET – 5
___________________________________________________________________________________
1. Write a Java program to find maximum and minimum of two different types of data using Generics.
2. Explain Inter Thread communication with an example program?

II B.Tech I sem Lab Internal Examination- DEC-2024


Object Oriented Programming through JAVA SET – 6
___________________________________________________________________________________
1. Create a linked list of elements. a. Delete a given element from the above list. b. Display the
contents of the list after deletion
2. How to creating threads using Thread class and Runnableinterfac?

II B.Tech I sem Lab Internal Examination- DEC-2024


Object Oriented Programming through JAVA SET – 7
___________________________________________________________________________________
1. Write a java program that connects to a database using JDBC and does add, delete, modify and
retrieve operations.
2. Write about Stack class using example program?

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