Академический Документы
Профессиональный Документы
Культура Документы
€iii
BHAVAN'S VIVEKANANDA COLLEGE
OF SCIENCE, HUMANITIES AND COMMERCE
(Accredited with 'A' Grade by NAAC)
Autonomous College - Affiliated to Osmania Uniyersity
Department of Computer Science
COURSE OBJECTIVE: To impart knowledge on core fundamental concepts of Java to develop applications
COb2: To leam fundamental concepts ofoops, control statements, arrays, strings and vectors
7
\/t--
:Rsox
BOS in I n )rfflallc'
\) ViYck€ ,andr
Coltl#
BN rYan's
{ sain
UNIT-III: Arrays, Packages and Interfaces in Java
Arrays - Strings - Vectors - Wrapper Classes - Enumerated Types
Interfaces: Multiple Inheritance: Defining Interfaces - Extending Interfaces - Implementing Interfaces -
Accessing Interface Variables.
Exception handling: Managing Errors and Exceptions: Types of Errors - Exceptions - Syntax of Exception
Handling Code - Multiple Catch Statements - Using Finally Statement - Throwing our own Exceptions -
Using Exceptions for debugging.
Prescribed Book:
Reference Books:
1. Herbert Schildt, Java: The Complete Reference, 9th edition, Tata McGraw-Hi11,2014.
2. John R. Hubbard, Programming with Java, Second Edition, Schaum's outline Series, Tata McGraw-Hill,
2007.
3. Timothy Budd, Understanding Object Oriented Programming with Java, Pearson Education,2007.
COURSE OUTCOMES:
rSoN
Clrr""' ,matl6
BOS in
tr
,naa Collr$
Vrv-er
Rhav an s
{ 8
q
r-tj:ryiA-i'€Iii
BHAVAN'S VIVEKANANDA COLLEGE
OF SCIENCE, HUMANITIES AND COMMERCE
(Accredited with 'A' Grade by NAAC)
Autonomous College - Affiliated to Osmania University
Department of Computer Science
1. Write a java program to determine the sum of the following harmonic series for a given value of 'n'.
1+112+113+. . . +1ln
2. Prompt for the cost price and selling price of an article and display the profit (or) loss percentage.
3. Write a program to fill elements into a list. Also, copy them in reverse order into another list.
4. Illushate the method overriding in JAVA.
5. Write a program to perform the following operations on strings through interactive input.
a) Sort given strings in alphabetical order.
b) Convert the strings to uppercase.
6. Write a program to identifu a duplicate value in a vector.
7. Write a program to demonstrate packages.
8. Write a program to illustrate static methods.
9, Write a program to demonstrate constructor overloading.
10. Write a program to sort the numbers in the ascending order.
11. Write a program to implement multiple inheritance using interfaces.
12. Write a program to demonstrate multithreading.
13. Write a program to demonstrate user-defined exception.
14. Write an interactive program to accept name ofa person and validate it. If the name contains any
numeric value throw an exception "lnvalidName".
15. Write a program to demonstrate multiple catch using exception handling.
CHA PEFSON
BOS in i n:ormdicl
Bneva n's Vivok; 'an
\ SainikJur
t -g\' 9
a:l'-;;rr1.
-
$s'r"