MIT103 – OBJECT ORIENTED PROGRAMMING

 

 

Dear students get fully solved assignments

Send your semester & Specialization name to our mail id :

  help.mbaassignments@gmail.com

or

call us at : 08263069601

 

 

 

ASSIGNMENT

 

PROGRAM Master of Science in Information Technology(MSc IT)Revised Fall 2011
SEMESTER 1
SUBJECT CODE & NAME MIT103- OBJECT ORIENTED PROGRAMMING
CREDIT 4
BK ID B1477
MAX.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.

 

 

 

1 Describe the following:

 

  1. a) Multi-threading.

Answer : Multithreading in java is a process of executing multiple threads simultaneously.

 

Thread is basically a lightweight sub-process, a smallest unit of processing. Multiprocessing and multithreading, both are used to achieve multitasking.

 

But we use multithreading than multiprocessing because threads share a common memory area. They don’t allocate

 

 

  1. b) Significance of Java Bytecode

 

Answer : Java is build on WODA (Write Once Deploy Anywhere) principle. This means you don’t have to tweak a Java source code if you want to deploy it in another OS. But at the end of the day, java programs need a JVM to run on and JVM being machine language specific cannot be platform-neutral. So, we

 

 

2 Differentiate Break and Continue statements in Java with example program.

 

Answer : A break statement when applied to a loop ends the statement. A continue statement ends the iteration of the current loop and returns the control to the loop statement. If the break keyword is followed by an identifier that is the label of a random enclosing statement, execution transfers out of that enclosing statement. If the continue keyword is followed by an identifier that is the label of an enclosing loop, execution skips to the end of that loop instead.

 

break: breaks the current loop and moves the cursor to next line after the loop

e.g.

 

 

 

3 Differentiate between packages and Interfaces.

 

Answer : Packages

Definition:  A package is a grouping of related types providing access protection and name space management. Note that types refers to classes, interfaces, enumerations, and annotation types. Enumerations and annotation types are special kinds of classes and interfaces, respectively, so types are often referred to in this lesson simply as classes and interfaces.

 

Creating a Package:

 

 

 

4 What are Applets? What are the restrictions of Applets? Describe about applet class.

 

Answer : What is an Applet in Java ?

An Applet is a small java program that runs in a Java enabled web browser. Java Applet is a small piece of java code that is embedded into HTML page, which gets executed when the HTML page loads into the browser.Applets provide powerful client-side functionality. As applets are loaded from remote machines and executed on client-side, there are various security restrictions on applets. –

 

Applets Restrictions

Applets have many restrictions over the

 

 

 

5 Compare JDBC and ODBC

 

Answer : Typically, software applications are written in a specific programming language (such as Java, C#, etc.), while databases accept queries in some other database specific language (such as SQL). Therefore, when a software application needs to access data in a database, an interface that can translate languages to each other (application and database) is required. Otherwise, application programmers need to learn and

 

 

 

6 Describe about Java Beans and BeanBox.

 

Answer : A Java Bean is a reusable software component that can be manipulated visually in an application builder tool.  The idea is that one can start with a collection of such components, and quickly wire them together to form complex programs without actually writing any new code.

Software components must, in general, adopt standard techniques for interacting with the rest of the world.  For example, all GUI components inherit the java.awt.Component class, which means that one can rely on them to have certain standard methods like paint(), setSize(), etc.  Java Beans are not actually required to inherit a

 

Dear students get fully solved assignments

Send your semester & Specialization name to our mail id :

  help.mbaassignments@gmail.com

or

call us at : 08263069601

 

Leave a Reply