Question Bank
Internet Java Programming, (MCA– 401)
SCA, IFTM University, Moradabad
UNIT I
PART A
1. What are the OOP Principles?
2. What is Encapsulation?
3. What is Polymorphism?
4. What is Inheritance?
5. What are the features of Java
Language?
6. What is the need for Java
Language?
7. What is platform independency?
8. What is Architecture Neutral?
9. How Java supports platform
independency?
10. Why Java is important to Internet?
11. What are the types of programs Java can
handle?
12. What is an applet program?
13. Compare Application and Applet.
14. What are the advantages of Java
Language?
15. Give the contents of Java
Environment (JDK).
16. Give any 4 differences between C
and Java.
17. Give any 4 differences between
C++ and Java.
18. What are the different types of
comment symbols in Java?
19. What are the data types supported in Java?
20. What
is the difference between a char in C/C++ and char in Java?
21. How is
a constant defined in Java?
22. What
is the use of final keyword?
23. What
are the different types of operators used in Java?
24. What
is short-Circuit operator?
25. What is labeled break?
26. What is the use of for each control
structure?
27. What is the need for static variables?
28. What is the need for static methods?
29. Compare static constants and final constants.
30. Why is main method assigned as public?
31. Why is main method assigned as static?
32. What are the types of variables Java handles?
33. What are the relationships between classes?
34. What is the general form of a class?
35. What is the use of new keyword?
36. If ObjA1 is an object of class A created
using new keyword, What does the statement A ObjA2=ObjA1; mean?
37. What is a constructor?
38. What is the difference between a constructor
and a method?
39. What is the use of this keyword?
40. What are destructors?
41. How is object destruction done in Java?
42. What is Garbage collection?
43. What is the use of finalize method?
44. Compare Garbage collection and finalize
method?
45. How is it guaranteed that finalize methods
are called?
46. What is method overloading?
47. What is a String in Java?
48. What is the difference between a String in
Java and String in C/C++?
49. Name a few String methods.
50. What is the difference between Concat method
and + operator to join strings?
51. What is String Buffer?
52. How does String class differ from the String
Buffer class?
53. Name some methods available under String
Buffer class.
54. Output of some expressions using String
methods.
55. How will you initialize arrays?
56. What is arraycopy method? Explain with
syntax.
57. What are the methods under Util.Arrays?
58. Use the array sort method to sort the given
array.
59. Give the syntax for array fill operation.
60. What is vector? How is it different from an array?
61. What is the constraint for using vectors?
62. What is wrapper class?
63. What are the different access specifiers
available in Java?
64. What is the default access specifier in Java?
65. What is a package in Java?
66. Name some Java API Packages.
67. Name some JavaDoc Comments.
68. What is CommandLine Arguments.
Part B
1.
Explain
OOP Principles.
2.
Explain
the features of Java Language.
3.
Compare
and Contrast Java with C.
4.
Compare
and Contrast Java with C++.
5.
Explain
Constructors with examples.
6.
Explain
the methods available under String and String Buffer Class.
7.
Explain
the Date Class methods with examples.
8.
Discuss
in detail the access specifiers available in Java.
9.
Explain
the different visibility controls and also compare with each of them.
10.
Explain
the different methods in java.Util.Arrays class with example.
11.
Explain
Packages in detail.
12.
Discuss
the methods under Array Class.
13.
Discuss
some of the classes available under Lang package.
14.
Illustrate
with examples: static and final.
15.
Explain
method overriding with example program.
16.
What is
javaDoc? Explain the comments for classes, methods, fields and link.
17.
Application
Programs in Java.
UNIT II
PART A
- Define Inheritance
- What are the types of inheritance?
- How is multiple inheritance achieved in
java?
- What is the use of super keyword?
- What are object wrappers? Give example.
- What is Inheritance Hierarchy?
- Differentiate overloading and
overriding.
- Define polymorphism.
- Differentiate static binding and dynamic
binding.
- When will a class be declared as final?
- When will a method be declared final?
- What is an abstract class?
- What is the need for abstract classes?
- Explain about protected visibility
control.
- What are the methods under
"object" class / java.lang.Object.
- Explain toString method of object class.
- What is reflection?
- What are the uses of reflection in Java.
- How will you create an instance of
Class.
- What are the methods under reflection
used to analyze the capabilities of classes?
- How to create arrays dynamically using
reflection package.
- Define an interface.
- What is the need for an interface?
- What are the properties of an interface?
- Differentiate Abstract classes and
interface.
- What is object cloning?
- Differentiate cloning and copying.
- Differentiate shallow copy and deep copy
in cloning.
- Does Inheritance removes any fields/or
methods of super class?
- Mention the use of final keyword.
- What is nested class? Mention its types.
- What is inner class?
- What is the need for inner classes?
- What are the rules for inner class?
- What is local inner class and anonymous
inner class? Give their advantages.
- Write the advantages and disadvantages
of static nested class.
- Define proxies.
- Write the application of proxies.
- What are the properties of proxy
classes?
PART B
1.
Explain
the concept of inheritance and its types.
2.
Explain
the concept of overriding with examples.
3.
What is
dynamic binding? Explain with example.
4.
Explain
the uses of reflection with examples.
5.
Define
an interface. Explain with example.
6.
Explain
the methods under “object” class and “class” class.
7.
What is
object cloning? Explain deep copy and shallow copy with examples.
8.
Explain
static nested class and inner class with examples.
9.
With an
example explain proxies.
10.
Develop
a message abstract class which contains playMessage abstract method. Write a
different sub-classes like TextMessage, VoiceMessage and FaxMessage classes for
to implementing the playMessage method.
11.
Develop
a abstract Reservation class which has Reserve abstract method. Implement the
sub-classes like ReserveTrain and ReserveBus classes and implement the same.
12.
Develop
an Interest interface which contains simpleInterest and compInterest methods
and static final field of Rate 25%. Write a class to implement those methods.
13.
Develop
a Library interface which has drawbook(), returnbook() (with fine),
checkstatus() and reservebook() methods. All the methods tagged with public.
14.
Develop
an Employee class which implements the Comparable and Cloneable interfaces.
Implement the sorting of persons (based on name in alphabetical). Also
implement the shallow copy (for name and age) and deep copy (for
DateOfJoining).
15.
Explain
the different methods supported in Object class with example.
16.
Explain
the methods supported in Class class.
17.
Explain
the Methods supported in reflect package. Also write a program to implement the
reflection of a particular class details like constructors, methods and fields
with its modifiers.
18.
Develop
a static Inner class called Pair which has MinMax method for finding min and
max values from the array.
19.
What is
proxy class? Develop a code for constructing a proxy objects to trace a binary
search method with explanations.
UNIT III
PART A
- Draw the inheritance hierarchy for the
frame and component classes in AWT and Swing.
- What are the advantages of using swing
over awt?
- How do achieve special fonts for your
text? Give example.
- Give the syntax of drawImage() and
copyArea() methods.
- What is Adapter class?
- Draw the AWT event Hierarchy.
- What are the swing components?
- What are the methods under Action
Interface.
- What are the methods under
WindowListener Interface.
- What is the difference between Swing and
AWT?
PART B
- Explain the classes under 2D shapes.
- Explain event handling with examples.
- Explain action event with an example.
- What are the swing components. Explain.
- Describe the AWT event hierarchy.
UNIT IV
PART A
1.
What is generic programming?
2.
What are Checked and UnChecked
Exception?
3.
What are checked exceptions?
4. What
are runtime exceptions?
5. What
is the difference between error and an exception?
6. What classes of exceptions may
be caught by a catch clause?.
7. If
I want an object of my class to be thrown as an exception object, what should I
do?
8.
How to create custom
exceptions?
9. What
are the different ways to handle exceptions?
10. What
is the purpose of the finally clause of a try-catch-finally statement?
11. What
is the basic difference between the 2 approaches to exception handling.
Is it necessary that each try block must be followed by a catch block?
Is it necessary that each try block must be followed by a catch block?
12. How
does Java handle integer overflows and underflows?
PART B
1.
Explain generic classes and
methods.
2.
Explain exception hierarchy.
3.
What are the advantages of
Generic Programming?
4.
Explain the different ways to
handle exceptions.
5.
How Java handle overflows and
underflows?
UNIT V
PART A
- Describe
synchronization in respect to multithreading.
- Explain
different way of using thread?
- What
is synchronization and why is it important?
- When
a thread is created and started, what is its initial state?
- What
are synchronized methods and synchronized statements?
- What
is daemon thread and which method is used to create the daemon thread?
- What method must be
implemented by all threads?
- What kind of thread is the Garbage collector thread?
- What is a daemon thread?
- What is a thread?
- What is the algorithm used in Thread scheduling?
- What are the different level lockings using the synchronization
keyword?
- What are the ways in which you can instantiate a thread?
- What are the states of a thread?
- What are the threads will start, when you start the java program?
- What are the different identifier states of a Thread?
- Why do threads block on I/O?
- What is synchronization and why is it important?
PART B
- Explain the different states of a thread.
- Explain thread synchronization with examples.
- Explain the algorithm used for thread scheduling.
- Describe multi threading.
- Explain Deadlocks.
- What is Distributed application architecture? What is RMI? List the steps for Building distributed applications using RMI.
- Explain JDBC Architecture? Discuss any model of this architecture.
- Describe synchronization in respect to multithreading.
- What do mean by Networking in java? Explain.
- Describe Event Handle ling in Java? What are the methods under WindowListener Interface.
No comments:
Post a Comment