What is an Interface?

a) What is an Interface? What is package? What is the relationship between classpath and
package? What is access modifier? Discuss about the access modifier of Java with respect to
package.

In the Java programming language char values represent

A. Button B. Abstract C. Inner
D. Nested E. Label F. Stream
G. Sequence H. Multithreading I. Collaboration
J. State K. PreparedStatement L. Activity
M. Unicode
4.1 In the Java programming language char values represent ________ characters.
4.2 ________ is a number of lightweight processes that are run in a single process/task or
program by a single processor.
4.3 ________ classes cannot be instantiated, but they can be subclassed.
4.4 As with instance methods and variables, a ________ class is associated with an instance of its enclosing class and has direct access to that object's methods and fields.
4.5 The ________ component is generally used to show the text or string in your application that never performs any type of action.
4.6 The Java IO classes, which mostly consists of ________ and readers / writers, are addressing various purposes.
4.7 ________ is used to execute precompiled sql queries with or without parameters.
4.8 In UML the ________ Diagrams emphasize the order in which things happen.
4.9 Based upon the events that occur, the ________ diagram shows how the object changes from start to finish.
4.10 ________ diagrams are used to show workflow in parallel and conditionally. They are useful when working out the order and concurrency of a sequential algorithm.

Multiple inheritance creates confusion in method overloading.

Each statement below is either TRUE or FALSE. Choose the most appropriate one and
ENTER in the “tear-off” sheet attached to the question paper, following instructions
therein.

2.1 Multiple inheritance creates confusion in method overloading.
2.2 Access modifiers are used to implement data encapsulation.
2.3 By default all variables of Interfaces are static and final.
2.4 Object class is the top most super class of any java class.
2.5 AWT component are light weight and platform independent.
2.6 In JDBC, DriverManager class provides Connection object.
2.7 Runnable interface can be used to create a thread.
2.8 Java support stream based I/O. FileOutputStream and FileInputStream are the two abstract base class in Java I/O.
2.9 The Class Diagram describes the types of objects in the system and the static relationship between them.
2.10 An interaction diagram captures the behavior of a single case by showing the collaboration of the objects in the system to accomplish the interaction.

On a use case diagram, associations are drawn between

1.10 On a use case diagram, associations are drawn between
A) actor and use cases to show that an actor carries out a use case
B) use case and clean diagram to show conversion of use case to class
C) use case and activity diagram to show conversation of use case to activity.
D) none of the above

In UML, a use case is made up of

1.9 In UML, a use case is made up of
A) a set of scenario
B) a set of steps; together that accomplish a specific goal of the use
C) a set of task, associated with a role
D) All of the above

The anonymous inner class

1.8 The anonymous inner class
A) has an expect class name
B) has no class name
C) has only methods
D) has no instance variables

What is the basic difference between Statement interface and PreparedStatement interface?

1.7 What is the basic difference between Statement interface and PreparedStatement interface?
A) Statement interface is used for static SQL, PreparedStatement interface is used for dynamic SQL
B) There is no difference between Statement interface and PreparedStatement interface.
C) Statement interface is used for dynamic SQL , PreparedStatement interface is used for Static SQL
D) None of the above