19IT201
19IT201
THROUGH JAVA
SOURCE:
https:/
cdncontribute.
PRE REQUISITE COURSES: Programming for Problem Solving, Data Structures geeksforgeeks.
org wp-content/
COURSE DESCRIPTION AND OBJECTIVES: uploads
OOPs Concepts.jpg
This course deals with the fundamentals of Object Oriented Programming (OOP) Concepts
and OOP based software development methodology. Java as a class-based and pure OOP
language is used to demonstrate and implement appropriate concepts and techniques. The
students are exposed to the concepts, fundamental syntax, and the thought processes behind
object oriented programming. By the end of course, students will acquire the basic knowledge
and skills necessary to implement object oriented programming techniques through Java in
software development.
COURSE OUTCOMES:
Upon completion of the course, the student will be able to achieve the following outcomes:
SKILLS:
Analyze and develop algorithms for real life problems using Java.
VFSTR 69
II Year I Semester
UNIT I L- 9
INTRODUCTION: History of Java, Byte code, JVM, Java buzzwords, OOP Principles, Data types,
Variables, Scope and life time of variables, Operators, Control statements, Type conversion and
casting, Arrays.
UNIT II L- 9
UNIT III L- 9
UNIT IV L- 9
COLLECTION FRAMEWORK : Collections overview, Collection interfaces - list, set, collection classes
- array list, linked list, hash set, treeset, accessing a collection via an iterator, The legacy classes
and interfaces- Dictionary, Hashtable, StringTokenizer.
UNIT - V L-9
GUI PROGRAMMING WITH SWING: Applet Class, Applet skeleton, Simple Applet; The Delegation
event model - Events, Event sources, Event Listeners; Event classes, Handling mouse and keyboard
events.
Exploring Swing Controls- JLabel and Image Icon, JText Field, JButton, JCheckBox, JRadioButton,
JTabbed Pane, JList, JCombo Box.
VFSTR 70
Oops Through Java
LABORATORY EXPERIMENTS
VFSTR 71
II Year I Semester
If user types in 7 the first menu should be displayed. You are free to display your own
messages in this IVR
Exercise-3
LOOPING STATEMENTS:
a. Write a Java program that prompts the user for an integer and then prints out all prime
numbers up to that integer.
b. Write a java program to find the sum of even numbers upto 100.
c. Write a java program to print the following output.
1
23
456
7 8 9 10
Exercise-4
ARRAYS:
a. Write a Java program to read 10 numbers from user and store it
in a array. Display the maximum and minimum number in the array.
b. Write a java program to sort the given list of elements in an array.
c. Write a Java program to search a given element in the array.
d. Write a Java program to calculate multiplication of 2 matrices.
Exercise-5
STRINGS:
a. Write a java program to check weather given string is palindrome or not.
b. Write a Java Program that reads a line of integers, and then displays each integer, and
the sum of all the integers (use StringTokenizer class)
c. Write a Java program for sorting a given list of names in ascending order.
d. Write a Java program that displays the number of characters, lines and words in a text
file.
Exercise-6
VFSTR 72
Oops Through Java
Exercise-8
PACKAGES:
Write a java program to implement the following
a. Creation of simple package
b. Accessing a package
Exercise-9
EXCEPTION HANDLING:
a. Write a java program which accepts withdraw amount from the user and throws an
exception In Sufficient Funds when withdraw amount more than available amount.
b. Write a java program to illustrate finally block.
Exercise-10
THREADS:
a. Write a java program to create three threads and that displays good morning, for every
one second,hello for every 2 seconds and welcome for every 3 seconds by using
extending Thread class.
b. Write a Java program that creates three threads. First thread displays OOPS, the
second thread displays Through and the third thread Displays JAVA by using
Runnable interface.
VFSTR 73
II Year I Semester
Exercise -11
COLLECTIONS:
a. Write a Java program to create a new array list, add some colors (string) and print out the
collection
b. Write a Java program to shuffle elements in a array list
c. Write a Java program to iterate through all elements in a linked list
d. Write a Java program to iterate through all elements in a hash list
e. Write a Java program to create a new tree set, add some colors (string) and print out the
tree set
Exercise-12
EVENT HANDLING:
a. Implement a Java program for handling mouse events when the mouse entered, exited,
clicked, pressed, released, dragged and moved in the client area.
b. Implement a Java program for handling key events when the key board is pressed, re
leased, typed.
Exercise-13
APPLETS AND SWINGS:
a. Develop an Applet program to accept two numbers from user and output the sum,
difference in the respective text boxes.
b. Write a java swing program that reads two numbers from two separate text fields and
display sum of two numbers in third text field when button add is pressed.
c. Write a JAVA program to design student registration form using Swing Controls. The form
which having the following fields and button SAVE
Form Fields are: Name, RNO, Mailid, Gender, Branch ,Address
TEXT BOOK:
1. Herbert Schildt, Java The Complete Reference, 9 th edition, McGraw Hill
Education (India) Pvt. Ltd., 2014.
REFERENCE BOOKS:
1. P. Radha Krishna, Object Oriented Programming Through Java, 1 st edition, Universities
Press, 2007.
2. R. A. Johnson, Java Programming and Object Oriented Application Development,
1st edition, Cengage Learning, 2006.
VFSTR 74