SlideShare a Scribd company logo
1 of 3
Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
help.mbaassignments@gmail.com
or
call us at : 08263069601
FALL 2016, ASSIGNMENT
PROGRAM MCA(REVISED FALL 2012)
SEMESTER 1
SUBJECT CODE & NAME MCA 4030 - PROGRAMMING IN JAVA
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:
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
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 programsneed a JVMto run on and JVMbeing machine language specific cannot be platform-
neutral. So, we
2 Differentiate Break and Continue statements in Java with example program.
Answer:A breakstatementwhenappliedtoa loopendsthe statement.A continue statement ends
the iterationof the currentloopand returnsthe control to the loopstatement.If the break keyword
isfollowedbyanidentifierthatisthe label of a randomenclosingstatement,executiontransfersout
of thatenclosingstatement.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:breaksthe current loopandmovesthe cursor to nextline afterthe 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.
Enumerationsandannotationtypesare special kindsof classesandinterfaces,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
loadsintothe browser.Appletsprovide powerful client-side functionality.Asappletsare loadedfrom
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 languagestoeachother(applicationanddatabase) isrequired.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

More Related Content

What's hot

Bt0074, oops with java
Bt0074, oops with javaBt0074, oops with java
Bt0074, oops with javasmumbahelp
 
Bt0074, oops with java
Bt0074, oops with javaBt0074, oops with java
Bt0074, oops with javasmumbahelp
 
Mi0041 java and web design
Mi0041  java and web designMi0041  java and web design
Mi0041 java and web designStudy Stuff
 
Mi0041 java and web design
Mi0041   java and web designMi0041   java and web design
Mi0041 java and web designsmumbahelp
 
Bt8903,c# programming
Bt8903,c# programmingBt8903,c# programming
Bt8903,c# programmingsmumbahelp
 
Java OOP s concepts and buzzwords
Java OOP s concepts and buzzwordsJava OOP s concepts and buzzwords
Java OOP s concepts and buzzwordsRaja Sekhar
 
Bt0074, oops with java
Bt0074, oops with javaBt0074, oops with java
Bt0074, oops with javasmumbahelp
 
Java buzzwords
Java buzzwordsJava buzzwords
Java buzzwordsramesh517
 
Mit4021 c# and .net
Mit4021   c# and .netMit4021   c# and .net
Mit4021 c# and .netsmumbahelp
 
Mi0041 java and web design
Mi0041 java and web designMi0041 java and web design
Mi0041 java and web designsmumbahelp
 
computer science JAVA ppt
computer science JAVA pptcomputer science JAVA ppt
computer science JAVA pptbrijesh kumar
 

What's hot (20)

Bt0074, oops with java
Bt0074, oops with javaBt0074, oops with java
Bt0074, oops with java
 
Bt0074, oops with java
Bt0074, oops with javaBt0074, oops with java
Bt0074, oops with java
 
Mi0041 java and web design
Mi0041  java and web designMi0041  java and web design
Mi0041 java and web design
 
Mi0041 java and web design
Mi0041   java and web designMi0041   java and web design
Mi0041 java and web design
 
Bt8903,c# programming
Bt8903,c# programmingBt8903,c# programming
Bt8903,c# programming
 
Java OOP s concepts and buzzwords
Java OOP s concepts and buzzwordsJava OOP s concepts and buzzwords
Java OOP s concepts and buzzwords
 
Bt0074, oops with java
Bt0074, oops with javaBt0074, oops with java
Bt0074, oops with java
 
Java buzzwords
Java buzzwordsJava buzzwords
Java buzzwords
 
Basic syntax
Basic syntaxBasic syntax
Basic syntax
 
Mit4021 c# and .net
Mit4021   c# and .netMit4021   c# and .net
Mit4021 c# and .net
 
Mi0041 java and web design
Mi0041 java and web designMi0041 java and web design
Mi0041 java and web design
 
Concepts of core java
Concepts of core javaConcepts of core java
Concepts of core java
 
Coding conventions
Coding conventionsCoding conventions
Coding conventions
 
Java for C++ programers
Java for C++ programersJava for C++ programers
Java for C++ programers
 
Java PPT
Java PPTJava PPT
Java PPT
 
Java interface
Java interface Java interface
Java interface
 
computer science JAVA ppt
computer science JAVA pptcomputer science JAVA ppt
computer science JAVA ppt
 
Java exam 2017
Java exam 2017Java exam 2017
Java exam 2017
 
Coding conventions
Coding conventionsCoding conventions
Coding conventions
 
Java
JavaJava
Java
 

Viewers also liked (20)

Glassware
GlasswareGlassware
Glassware
 
Argentina estado Chubut
Argentina estado ChubutArgentina estado Chubut
Argentina estado Chubut
 
EXPLICACION DEL LIBRO DE APOCALIPSIS
EXPLICACION DEL LIBRO DE APOCALIPSISEXPLICACION DEL LIBRO DE APOCALIPSIS
EXPLICACION DEL LIBRO DE APOCALIPSIS
 
Tugasan 2.ppt
Tugasan 2.pptTugasan 2.ppt
Tugasan 2.ppt
 
RED ALAMBRICA
RED ALAMBRICARED ALAMBRICA
RED ALAMBRICA
 
argentina
argentinaargentina
argentina
 
Gestalt
GestaltGestalt
Gestalt
 
Educación virtual
Educación virtualEducación virtual
Educación virtual
 
Las aulas virtuales
Las aulas virtualesLas aulas virtuales
Las aulas virtuales
 
Artemide_Final Presentation 1presenting
Artemide_Final Presentation 1presentingArtemide_Final Presentation 1presenting
Artemide_Final Presentation 1presenting
 
Servicios publicos domiciliarios2
Servicios publicos domiciliarios2Servicios publicos domiciliarios2
Servicios publicos domiciliarios2
 
Argentina estado pampa
Argentina estado pampaArgentina estado pampa
Argentina estado pampa
 
Referencia mundial colombia
Referencia  mundial colombiaReferencia  mundial colombia
Referencia mundial colombia
 
IMPACTOS EN LOS NIVELES DE EDUCACION
IMPACTOS EN LOS NIVELES DE EDUCACIONIMPACTOS EN LOS NIVELES DE EDUCACION
IMPACTOS EN LOS NIVELES DE EDUCACION
 
Home appliances
Home appliancesHome appliances
Home appliances
 
Las aulas virtuales
Las aulas virtualesLas aulas virtuales
Las aulas virtuales
 
Mb0048 operations research (1)
Mb0048 operations research (1)Mb0048 operations research (1)
Mb0048 operations research (1)
 
Transfusión
TransfusiónTransfusión
Transfusión
 
Mca 4040 analysis and design of algorithm
Mca 4040  analysis and design of algorithmMca 4040  analysis and design of algorithm
Mca 4040 analysis and design of algorithm
 
Handcrafted items ppt
Handcrafted items pptHandcrafted items ppt
Handcrafted items ppt
 

Similar to Mca 4030 programming in java

Bt0074 oop with java
Bt0074   oop with javaBt0074   oop with java
Bt0074 oop with javasmumbahelp
 
Mi0041 java and web design
Mi0041   java and web designMi0041   java and web design
Mi0041 java and web designsmumbahelp
 
Mit103 object oriented programming
Mit103  object oriented programmingMit103  object oriented programming
Mit103 object oriented programmingsmumbahelp
 
Bt8903, c# programming
Bt8903, c# programmingBt8903, c# programming
Bt8903, c# programmingsmumbahelp
 
Classes and Objects
Classes and ObjectsClasses and Objects
Classes and Objectsvmadan89
 
Sybsc cs sem 3 core java
Sybsc cs sem 3 core javaSybsc cs sem 3 core java
Sybsc cs sem 3 core javaWE-IT TUTORIALS
 
Bt0074 oops with java2
Bt0074 oops with java2Bt0074 oops with java2
Bt0074 oops with java2Techglyphs
 
PRG 420 NERD Education Counseling--prg420nerd.com
PRG 420 NERD Education Counseling--prg420nerd.comPRG 420 NERD Education Counseling--prg420nerd.com
PRG 420 NERD Education Counseling--prg420nerd.comvenkat60044
 
Java Standard edition(Java ) programming Basics for beginner's
Java Standard edition(Java ) programming Basics  for beginner'sJava Standard edition(Java ) programming Basics  for beginner's
Java Standard edition(Java ) programming Basics for beginner'smomin6
 
PRG 420 NERD Become Exceptional--prg420nerd.com
PRG 420 NERD Become Exceptional--prg420nerd.comPRG 420 NERD Become Exceptional--prg420nerd.com
PRG 420 NERD Become Exceptional--prg420nerd.comagathachristie127
 
PRG 420 Education for Service--prg420.com
PRG 420 Education for Service--prg420.comPRG 420 Education for Service--prg420.com
PRG 420 Education for Service--prg420.comwilliamwordsworth25
 
PRG 420 Education Counseling / prg420.com
PRG 420 Education Counseling / prg420.comPRG 420 Education Counseling / prg420.com
PRG 420 Education Counseling / prg420.comkopiko76
 
PRG 420 Inspiring Innovation--prg420.com
PRG 420 Inspiring Innovation--prg420.comPRG 420 Inspiring Innovation--prg420.com
PRG 420 Inspiring Innovation--prg420.comkopiko112
 

Similar to Mca 4030 programming in java (20)

Bt0074 oop with java
Bt0074   oop with javaBt0074   oop with java
Bt0074 oop with java
 
Mi0041 java and web design
Mi0041   java and web designMi0041   java and web design
Mi0041 java and web design
 
Mit103 object oriented programming
Mit103  object oriented programmingMit103  object oriented programming
Mit103 object oriented programming
 
Viva file
Viva fileViva file
Viva file
 
00 intro to java
00 intro to java00 intro to java
00 intro to java
 
Bt8903, c# programming
Bt8903, c# programmingBt8903, c# programming
Bt8903, c# programming
 
Classes and Objects
Classes and ObjectsClasses and Objects
Classes and Objects
 
Professional-core-java-training
Professional-core-java-trainingProfessional-core-java-training
Professional-core-java-training
 
Professional-core-java-training
Professional-core-java-trainingProfessional-core-java-training
Professional-core-java-training
 
Sybsc cs sem 3 core java
Sybsc cs sem 3 core javaSybsc cs sem 3 core java
Sybsc cs sem 3 core java
 
Bt0074 oops with java2
Bt0074 oops with java2Bt0074 oops with java2
Bt0074 oops with java2
 
PRG 420 NERD Education Counseling--prg420nerd.com
PRG 420 NERD Education Counseling--prg420nerd.comPRG 420 NERD Education Counseling--prg420nerd.com
PRG 420 NERD Education Counseling--prg420nerd.com
 
Java Standard edition(Java ) programming Basics for beginner's
Java Standard edition(Java ) programming Basics  for beginner'sJava Standard edition(Java ) programming Basics  for beginner's
Java Standard edition(Java ) programming Basics for beginner's
 
PRG 420 NERD Become Exceptional--prg420nerd.com
PRG 420 NERD Become Exceptional--prg420nerd.comPRG 420 NERD Become Exceptional--prg420nerd.com
PRG 420 NERD Become Exceptional--prg420nerd.com
 
PRG 420 Education for Service--prg420.com
PRG 420 Education for Service--prg420.comPRG 420 Education for Service--prg420.com
PRG 420 Education for Service--prg420.com
 
PRG 420 Education Counseling / prg420.com
PRG 420 Education Counseling / prg420.comPRG 420 Education Counseling / prg420.com
PRG 420 Education Counseling / prg420.com
 
PRG 420 Inspiring Innovation--prg420.com
PRG 420 Inspiring Innovation--prg420.comPRG 420 Inspiring Innovation--prg420.com
PRG 420 Inspiring Innovation--prg420.com
 
01slide
01slide01slide
01slide
 
01slide
01slide01slide
01slide
 
01slide
01slide01slide
01slide
 

Recently uploaded

MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 

Recently uploaded (20)

MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 

Mca 4030 programming in java

  • 1. Dear students get fully solved assignments Send your semester & Specialization name to our mail id : help.mbaassignments@gmail.com or call us at : 08263069601 FALL 2016, ASSIGNMENT PROGRAM MCA(REVISED FALL 2012) SEMESTER 1 SUBJECT CODE & NAME MCA 4030 - PROGRAMMING IN JAVA 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: 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 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 programsneed a JVMto run on and JVMbeing machine language specific cannot be platform- neutral. So, we 2 Differentiate Break and Continue statements in Java with example program. Answer:A breakstatementwhenappliedtoa loopendsthe statement.A continue statement ends the iterationof the currentloopand returnsthe control to the loopstatement.If the break keyword isfollowedbyanidentifierthatisthe label of a randomenclosingstatement,executiontransfersout
  • 2. of thatenclosingstatement.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:breaksthe current loopandmovesthe cursor to nextline afterthe 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. Enumerationsandannotationtypesare special kindsof classesandinterfaces,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 loadsintothe browser.Appletsprovide powerful client-side functionality.Asappletsare loadedfrom 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 languagestoeachother(applicationanddatabase) isrequired.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
  • 3. 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