Atmiya Institute of
Technology & Science
Department of
M.C.A.
M.C.A. Semester - III
630002
– Fundamental of Java Programming (JAVA)
Assignment
– 2 (Inheritance, package, interface, exception, enum, collection)
Date : 18/10/2010 Submission
Date : 30/10/2010
---------------------------------------------------------------------------------------------------------------
Note : Explain
every question with proper example.
Difference
should be written in partitioned.
---------------------------------------------------------------------------------------------------------------
Explain Following question in
detail
1).Explain following keyword in detail.
(i) abstract (ii) final (iii) super (iv) this (v) try (vi)
catch (vii) throw
(viii) throws (ix) finally
2).Explain -classpath and –d option of
javac with example?
3).What are the access specifiers
available in java? Explain each of them. State which of these can be applied to
a class and which can be applied to a member of a package.
4).What is interface? Why it is
required? Explain with example?
5). What is String Buffer? Explain any
5 methods of String Buffer Class with syntax and example?
6).What is wrapper classes? Explain all
in detail?
7).Explain how the concept inheritance
is achieved in java?
8).What is Exception handling? Explain types of exception available in
java?
9).How to create a custom exception in java explain with example?
10).What is chained Exception explain with example? Put Top layer
exception as a IOException and under this add two cause first
ArithmeticException and second ArrayIndexOutOfBoundsException. (Also explain
initCause() and getCause() method.)
11). Explain Inner Class, Top level nested Class, Local Class and
anonymous classes in detail?
12). What is enum type? Explain with example?
13). Explain Collection Framework in detail? Explain all interface extends
from Collection and Map.
14).Explain methods define by Collection, Set, List, Sorted Set, Map,
Map.Entry, Sorted Map interfaces?
15).What is Vector Class? Explain methods define by Vector Class? Explain
Vector with example?
16).What is Iterator and List Iterator? Explain methods define by Iterator
and List Iterator? Give one example of both.
17).Explain Date, Calendar, Gregorian Calendar classes from java.util
package with methods and small example?
18).What is Regular expression? Explain pattern and matcher classes with
example?
19).Explain Scanner and Formatter classes with example?
20).What is Generics in Collection Framework?
Differentiate the follwing
(a)
|
Interface Vs Abstract Class
|
(b)
|
Overloading
Vs Overriding
|
(c)
|
Primitive
Type Vs Wrapper Class
|
(d)
|
Narrowing
Conversion Vs Widening Conversion
|
(e)
|
Call By
Value Vs Call By Ref
|
(f)
|
Object Vs
Reference
|
(g)
|
Initializer
Block Vs Class Initializer Block
|
(h)
|
final Vs
finally Vs finalize()
|
(i)
|
Checked
Exception Vs Unchecked Exception
|
(j)
|
Set
Interface Vs List Interface
|
0 comments:
Post a Comment