Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
5 views

Java unit wise Questions

Uploaded by

mahimanoharn
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Java unit wise Questions

Uploaded by

mahimanoharn
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Unit - I

1)Explain Buzzwords ?
2)Explain oops concept with real life example ?
3)Explain Control statements with example ?
4)What is an Array? Explain different types of array? ( ID, 2D, 3D, Jagged Array)
5)what is String ? Explain String methods.
6)what is StringBuilder & String Buffer - Explain there methods.
7)what is Inheritance? Explain types of inheritance with suitable examples(programs)
8 what is polymorphism ? Explain types of it with examples.
9)What is overloading? Explain Method overloading & constructor overloading with example
10)Explain the following Keywords with examples i)this ii)super iii) static iv) final
11) Explain Static blocks & instance intializer blocks with examples
12)what is abstraction? Explain abstract classes waith suitable examples
13)what is string tokenzier? Explain its methods with suitable examples
14) Explain forms of Inheritance, Benefits of Inheritance & costs of Inheritance.
15)what is object Mass & its methods
16)why Multiple Inheritance is not supported in java. Explain it with suitable example
Unit-2
1)What is a package? Who explain the ways to define the package?
2) What is classpath? Explain the loads to set the classpath?
3) what are diflerent access specifiers. explain with Examples?
4)What is an Interface. explain with an example program?
5)what is nested interface. Explain with an example program?
6)how is multiple inheritance achieved in Java?
7)Differentiate between byte streams and character Streams?
8) write a program to copy the content of one file to another file using
1. Byte stream.
2. character stream.
9)what is file class? what is the purpose of it ?
10)what is serialization and Deserialisation. Explain suitable example?
11)Explain trasient and static variable with an Example program?
12) All the related programs for Bytestream, character stream?
13) what is the console class? Explain the purpose of it?
Unit-3
1)What is an Exception? Explain the types of exceptions?
2)How to handle exception? Explain the suitable example?
3)What is termination or rescemptive model?
Explain uncaught Exception?
4)Explain the following
a. Multiple catch block
b. catch all catch block
c.Multi catch block.
d. Nested try statement
5) Differentiate the following
a. Throw and throws
b: final, finally, finalize
6) Write a program to explain user defined exception(checked and unchecked)
7)What is thread, explain thread model and thread lifestyle?
8)Differentiate between on thread based multitasking and process based multitasking with
realtime example?..
9)What are different ways of creating thread. Explain with Example?
10)What is synchronization: Explain Synchronized method and Synchronixed block?.
11)Explain interthread communication with producer consumer problem?
12)Explain the following
a. thread priority.
b. wait(),join(),yield()
Unit- 4
1) What is a collection? Explain collection Framework in brief ?
2) Differentiatebetween list, set and map?
3) What is list? Explain the list methods?
4) What is set? exploin the set methods?
5) What is queue? Explain the queue methods?
6) What is map? explain the map methods?
7) Differentiate between array list, linked list?
8)Diferentiate between Hash set, linked hash set and Tree set?
9) Differentiate between Hash map, linked hash map and Tree map?
10) What is natural ordering? How do you set it for a user defined objects? Explain with an
example program?
11)What is comparator. Explain the ordering of user defined objects with difterent comparators?
12) Explain the Following:
a. Iterator
b. List Iterator
c. Descending Iterator
d. Ennumeration
e.Entry Set
These all 5 are for each alternatives
13)Explain Auto boxing and Auto unboxing? With an example program?
14) What is a difference between Vector, stack and array list? Explain the methods.
15)What is legacy class. Explain them?
16) Explain the purpose of scanner class and its methods?
Unit-5
1)What is JDBC and Explain the types of jdbc drivers
2) What are the basics steps to connect to the JDBC and perform the operations?
3). What is a statement - Explain different type of statement objects.
4) what is resultset Explain the properties of resultset?
5)Explain transaction management using JDBC. With an example program?

You might also like