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

Assignment 2 Java CIC 212

This document is an assignment for the Programming in Java course at Maharaja Agrasen Institute of Technology, focusing on topics from Units 3 and 4. It includes questions on threading, AWT components, file character counting, socket programming, and database connectivity. The assignment is worth 10 marks and requires practical programming solutions for each question.

Uploaded by

kartikchauhan190
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)
20 views1 page

Assignment 2 Java CIC 212

This document is an assignment for the Programming in Java course at Maharaja Agrasen Institute of Technology, focusing on topics from Units 3 and 4. It includes questions on threading, AWT components, file character counting, socket programming, and database connectivity. The assignment is worth 10 marks and requires practical programming solutions for each question.

Uploaded by

kartikchauhan190
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

MAHARAJA AGRASEN INSTITUTE OF TECHNOLOGY

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


Subject Name: Programming in Java Subject Code: - CIC-212
ASSIGNMENT-2 M.M. = 10 Marks
SYLLABUS UNIT 3 & UNIT 4
Q1.
name. What if we call run() method directly instead of start() method ? (CO3)
Q2. Create an AWT with an instance of Frame class with TextField, Label and Button component on
the Frame. (CO3)
Q3. Write a program to count the number of times a character appears in a File. (CO4)

Sample Input and Output:


Enter the file name
Input. txt
Enter the character to be counted
r
I/O Streams
instances of letter
Q4. How socket programming is significant in Java Runtime Environment. Create a Java socket
program where client sends a text and server receives and prints it. (CO4)
Q5. Write a program in Java that establishes a connection to oracle database successfully. If the
connection is successful, it If it is
(CO4)

You might also like