Assignment-3 Stream Classes


Atmiya Institute of Technology & Science
Department of M.C.A.
M.C.A. Semester - III
630002 – Fundamental of Java Programming (JAVA)
Assignment – 3 (Stream based I/O)
Date :  29/10/2010                                    No Submission Date
-------------------------------------------------------------------------------
Explain Following question in detail
1). What is stream classes?
2). Explain OutputStream with basic methods and constuctors and sub classes. Draw a diagram of OutputStream.
3). Explain InputStream with basic methods and constuctors and sub classes. Draw a diagram of InputStream.? Explain blocking methods also?
4). Explain Reader with basic methods and constuctors and sub classes. Draw a diagram of Reader abstract class.
5). Explain Writer with basic methods and constuctors and sub classes. Draw a diagram of Writer abstract class.
6).Explain FileInputStream and FileOutputStream with constructors and methods? Give small example of read and write into file.
7). Explain FileReader and FileWriter with constructors and methods? Give small example of read and write into file.
8). Explain Piped Streams in detail?
9).Explain Array based streams with methods and constructors? (Byte and Char based Streams)
10).Explain Filter Streams with constructor and subclasses?
11). Explain Buffered Streams with constructor?
12). Explain PrintStream and PrintWriter with methods and constructors?
13). Explain Data and Object Streams with constructor and methods?
14). Explain Random Access File with methods and constructors? Give small example of read, write and append into file?

Differentiate the follwing


  1.  
flush() Vs reset()

  1.  
Byte Streams Vs Char Streams

  1.  
OutputStream Vs InputStream

  1.  
OutputStream Vs Writer

  1.  
Reader Vs Writer

  1.  
Reader Vs InputStream

  1.  
ByteArrayInputStream Vs CharArrayOutputStream

  1.  
ByteArrayOutputStream Vs CharArratOutputStream

  1.  
BufferedOutputStream Vs BufferedInputStream

  1.  
BufferedWriter Vs BufferedReader

  1.  
PrintStream Vs PrintWriter

  1.  
FilterInputStream Vs FilterOutputStream

  1.  
FilterReader Vs FilterWriter

  1.  
mark Vs markSupported()

Theory Assignment - 2


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