0% found this document useful (0 votes)
4 views2 pages

Java Real practical

The document outlines the syllabus for the B.Sc. Degree Programme in Computer Science with Artificial Intelligence at the University of Madras, specifically for the Java Programming Practical course in the second semester. It includes learning objectives, course outcomes, a list of programming assignments, and recommended learning resources. The course aims to provide students with practical expertise in Java programming, including multi-threading, exception handling, and GUI development using AWT and Swing.

Uploaded by

gaydhsb
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
4 views2 pages

Java Real practical

The document outlines the syllabus for the B.Sc. Degree Programme in Computer Science with Artificial Intelligence at the University of Madras, specifically for the Java Programming Practical course in the second semester. It includes learning objectives, course outcomes, a list of programming assignments, and recommended learning resources. The course aims to provide students with practical expertise in Java programming, including multi-threading, exception handling, and GUI development using AWT and Swing.

Uploaded by

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

UNIVERSITY OF MADRAS

B.Sc. DEGREE PROGRAMME IN COMPUTER SCIENCE WITH


ARTIFICIAL INTELLIGENCE
SYLLABUS WITH EFFECT FROM 2023-2024

Year: I Semester: II
Java Programming Practical 126C21
Common for B.C.A. , B.Sc.-SA , B.Sc.-CSc , B.Sc.-CSc-wAI , B.Sc.-CSc-wDS
Credits 5 Lecture Hours:5 per week

Learning Objectives: (for teachers: what they have to do in the class/lab/field)


 To gain practical expertise in coding Core Java programs
 To become proficient in the use of AWT, Event Handling and Swing.
Course Outcomes: (for students: To know what they are going to learn)
CO1: Code, debug and execute Java programs to solve the given problems
CO2: Implement multi-threading and exception-handling
CO3: Implement functionality using String and StringBuffer classes
CO4: Demonstrate Event Handling.
CO5: Create applications using Swing and AWT

List of Programs
1. Write a Java program that prompts the user for an integer and then prints out all the
prime numbers up to that Integer?
2. Write a Java program to multiply two given matrices.
3. Write a Java program that displays the number of characters, lines and words in a text?
4. Generate random numbers between two given limits using Random class and print
messages according to the range of the value generated.
5. Write a program to do String Manipulation using Character Array and perform the
following string operations:
a) String length
b) Finding a character at a particular position
c) Concatenating two strings
6. Write a program to perform the following string operations using String class:
a) String Concatenation
b) Search a substring
c) To extract substring from given string
7. Write a program to perform string operations using StringBuffer class:
a) Length of a string
b) Reverse a string
c) Delete a substring from the given string
8. 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.
UNIVERSITY OF MADRAS
B.Sc. DEGREE PROGRAMME IN COMPUTER SCIENCE WITH
ARTIFICIAL INTELLIGENCE
SYLLABUS WITH EFFECT FROM 2023-2024

9. Write a threading program which uses the same method asynchronously to print the
numbers 1 to 10 using Thread1 and to print 90 to 100 using Thread2.
10. Write a program to demonstrate the use of following exceptions.
a) Arithmetic Exception
b) Number Format Exception
c) Array Index Out of Bound Exception
d) Negative Array Size Exception
11. Write a Java program that reads on file name from the user, 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?
12. Write a program to accept a text and change its size and font. Include bold italic
options. Use frames and controls.
13. Write a Java program that handles all mouse events and shows the event name at the
center of the window when a mouse event is fired. (Use adapter classes).
14. Write a Java program that works as a simple calculator. Use a grid layout to arrange
buttons for the digits and for the +, -,*, % operations. Add a text field to display the result.
Handle any possible exceptions like divide by zero.
15. Write a Java program that simulates a traffic light. The program lets the user select
one of three lights: red, yellow, or green with radio buttons. On selecting a button,
an appropriate message with “stop” or “ready” or “go” should appear above the
buttons in a selected color. Initially there is no message shown.

Learning Resources:
Recommended Texts
Herbert Schildt, The Complete Reference, Tata McGraw Hill, New Delhi, 7th Edition, 2010.
Gary Cornell, Core Java 2 Volume I – Fundamentals, Addison Wesley, 1999.
Reference Books
Head First Java, O’Rielly Publications, Y. Daniel Liang, Introduction to Java Programming,
7th Edition, Pearson Education India, 2010.
Web resources: Web resources from NDL Library, E-content from open-source libraries

You might also like