Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601
(Prefer mailing. Call in emergency )
ASSIGNMENT
DRIVE | WINTER 2014 |
PROGRAM | M.SC. IT |
SUBJECT CODE & NAME | MIT103– Object Oriented Programming |
SEMESTER | 1 |
CREDITS | 4 |
MARKS | 60 |
Note: Answer all questions. Kindly note that answers for 10 marks questions should be approximately of 400 words. Each question is followed by evaluation scheme.
Q.1 Explain the data types in Java
Answer : Data type specifies the size and type of values that can be stored in an identifier. The Java language is rich in its data types. Different data types allow you to select the type appropriate to the needs of the application.
Data types in Java are classified into two types:
Q.2 Explain the different types of Relationships
Answer : Java programs are comprised of a set of interacting objects, and Java derives its power from the relationships between different objects. Relationships allow a programmer to define complicated objects by building them out of a simpler series of objects, thus easing the process of debugging and creating code that can be reused for multiple purposes.
Inheritance :
Q.3 What is Exception? What are the different types of Exceptions?
Answer : An exception is an event, which occurs during the execution of a program, that disrupts the normal flow of the program’s instructions. When an error occurs within a method, the method creates an object and hands it off to the runtime system. The object, called an exception object, contains information about the error,
Q. 4 Write a note on stream classes
Answer : In Java IO streams are flows of data you can either read from, or write to. As mentioned earlier in this tutorial, streams are typically connected to a data source, or data destination, like a file, network connection etc.
A stream has no concept of an index of the read or written data, like an array does. Nor can you typically move forth and back in a stream, like you can in an array, or in a file using Random Access File. A stream is just a continuous flow of data.
Q.5 What is an applet? Explain the applet class
Answer : Applet :
An applet is a Java program that runs in a Web browser. An applet can be a fully functional Java application because it has the entire Java API at its disposal. There are some important differences between an applet and a standalone Java application, including the following:
- An applet is a Java class that extends the java.applet.Applet class.
- A main() method is not invoked on an applet, and an applet class will not define main().
- Applets are designed to be embedded
Q.6 Explain the Components of an Event?
Answer : Components of an Event :
In object-oriented programming and distributed object technology, a component is a reusable program building block that can be combined with other components in the same or other computers in a distributed network to form an application. Examples of a component include: a single button in a graphical user interface, a small interest calculator, an interface to a database manager. Components can be deployed on different servers in a network and communicate with each other for needed services. A component runs within a context called a container . Examples of containers include pages on a Web site, Web
Q.7 Write a note on Java Beans
Answer : The JavaBeans™ architecture is based on a component model which enables developers to create software units called components. Components are self-contained, reusable software units that can be visually assembled into composite components, applets, applications, and servlets using visual application builder tools. Java Bean components are known as beans . A set of APIs describes a component model for a particular language.
Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601
(Prefer mailing. Call in emergency )