SlideShare a Scribd company logo
1 of 4
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 BSc IT
SEMESTER THIRD
SUBJECT CODE & NAME BT0074, OOPS with JAVA
BK ID B1002
CREDIT 4 CREDITS
MAX. MARKS 60
1 Describe the syntax and working of if-else with an example. Also write a program in java that assigns
a grade based on the value of a test score: an A for a score of 90% or above, a B for a score of 80% or
above,and so on.
Answer:General if..else syntaxisasfollows:
If givenconditionisTRUE, expr_set1will getexecuted.
If givenconditionisFALSE(notTRUE),
2 List and explainall the string comparison functions.Write a program in java to reverse a string.
Answer:StringComparisonFunctionsare :
Comparison Primitives Objects
a == b, a != b Equal values Compares references, not values. The use of == with object
referencesisgenerallylimitedtothe following:
 Comparingtosee if a reference isnull.
 Comparing twoenum values. This works because there
isonlyone objectfor eachenumconstant.
3 Describe with the helpof an example the implementationofinheritance injava.
Answer: The most fundamental element of Java is the class. A class represents an entity and also,
defines and implements its functionality. In Java, classes can be derived from other classes, in order to
create more complex relationships. A class that is derived from another class is called subclass and
inheritsall fieldsandmethodsof itssuperclass.InJava,only
5 Draw and Explainthe Life cycle of a java appletwith an example.
Answer: Java applet inherits features from the class Applet. Thus, whenever an applet is created, it
undergoes a series of changes from initialization to destruction. Various stages of an applet life cycle are
depictedinthe figure below:
Initial State
Whena newappletisborn or created,itis
6 Define java beansand beanbox. Describe the advantages of java beanbox.
Answer: In computing based on the Java Platform, JavaBeans are classes that encapsulate many objects
into a single object (the bean). They are serializable, have a zero-argument constructor, and allow access
to properties using getter and setter methods. The name "Bean" was given to encompass this standard,
whichaimsto create reusable software componentsforJava.
Advantages:
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

Mca2030 object oriented programming – c++
Mca2030  object oriented programming – c++Mca2030  object oriented programming – c++
Mca2030 object oriented programming – c++smumbahelp
 
Mi0041 java and web design
Mi0041  java and web designMi0041  java and web design
Mi0041 java and web designsmumbahelp
 
Mca2030 object oriented programming – c++
Mca2030  object oriented programming – c++Mca2030  object oriented programming – c++
Mca2030 object oriented programming – c++smumbahelp
 
Java Chapter 04 - Writing Classes: part 1
Java Chapter 04 - Writing Classes: part 1Java Chapter 04 - Writing Classes: part 1
Java Chapter 04 - Writing Classes: part 1DanWooster1
 
Java Chapter 04 - Writing Classes: part 3
Java Chapter 04 - Writing Classes: part 3 Java Chapter 04 - Writing Classes: part 3
Java Chapter 04 - Writing Classes: part 3 DanWooster1
 
Mi0041 java and web design
Mi0041  java and web designMi0041  java and web design
Mi0041 java and web designStudy Stuff
 
Dynamic Polymorphism in C++
Dynamic Polymorphism in C++Dynamic Polymorphism in C++
Dynamic Polymorphism in C++Dharmisha Sharma
 
Abstract Class In Java | Java Abstract Class Tutorial | Java Tutorial For Beg...
Abstract Class In Java | Java Abstract Class Tutorial | Java Tutorial For Beg...Abstract Class In Java | Java Abstract Class Tutorial | Java Tutorial For Beg...
Abstract Class In Java | Java Abstract Class Tutorial | Java Tutorial For Beg...Simplilearn
 
Abstraction in java [abstract classes and Interfaces
Abstraction in java [abstract classes and InterfacesAbstraction in java [abstract classes and Interfaces
Abstraction in java [abstract classes and InterfacesAhmed Nobi
 
Bca5020 visual programming
Bca5020  visual programmingBca5020  visual programming
Bca5020 visual programmingsmumbahelp
 
Bca5020 visual programming
Bca5020  visual programmingBca5020  visual programming
Bca5020 visual programmingsmumbahelp
 
Learn C# Programming - Classes & Inheritance
Learn C# Programming - Classes & InheritanceLearn C# Programming - Classes & Inheritance
Learn C# Programming - Classes & InheritanceEng Teong Cheah
 
Mca2030 object oriented programming – c++
Mca2030  object oriented programming – c++Mca2030  object oriented programming – c++
Mca2030 object oriented programming – c++smumbahelp
 
OOP in C#
OOP in C#OOP in C#
OOP in C#DevMix
 
What are Abstract Classes in Java | Edureka
What are Abstract Classes in Java | EdurekaWhat are Abstract Classes in Java | Edureka
What are Abstract Classes in Java | EdurekaEdureka!
 
Bt8903, c# programming
Bt8903, c# programmingBt8903, c# programming
Bt8903, c# programmingsmumbahelp
 

What's hot (20)

Mca2030 object oriented programming – c++
Mca2030  object oriented programming – c++Mca2030  object oriented programming – c++
Mca2030 object oriented programming – c++
 
Mi0041 java and web design
Mi0041  java and web designMi0041  java and web design
Mi0041 java and web design
 
Mca2030 object oriented programming – c++
Mca2030  object oriented programming – c++Mca2030  object oriented programming – c++
Mca2030 object oriented programming – c++
 
Java Chapter 04 - Writing Classes: part 1
Java Chapter 04 - Writing Classes: part 1Java Chapter 04 - Writing Classes: part 1
Java Chapter 04 - Writing Classes: part 1
 
Java Chapter 04 - Writing Classes: part 3
Java Chapter 04 - Writing Classes: part 3 Java Chapter 04 - Writing Classes: part 3
Java Chapter 04 - Writing Classes: part 3
 
Lec 1.9 oop
Lec 1.9 oopLec 1.9 oop
Lec 1.9 oop
 
Mi0041 java and web design
Mi0041  java and web designMi0041  java and web design
Mi0041 java and web design
 
Dynamic Polymorphism in C++
Dynamic Polymorphism in C++Dynamic Polymorphism in C++
Dynamic Polymorphism in C++
 
Abstract Class In Java | Java Abstract Class Tutorial | Java Tutorial For Beg...
Abstract Class In Java | Java Abstract Class Tutorial | Java Tutorial For Beg...Abstract Class In Java | Java Abstract Class Tutorial | Java Tutorial For Beg...
Abstract Class In Java | Java Abstract Class Tutorial | Java Tutorial For Beg...
 
Abstraction in java [abstract classes and Interfaces
Abstraction in java [abstract classes and InterfacesAbstraction in java [abstract classes and Interfaces
Abstraction in java [abstract classes and Interfaces
 
Bca5020 visual programming
Bca5020  visual programmingBca5020  visual programming
Bca5020 visual programming
 
Bca5020 visual programming
Bca5020  visual programmingBca5020  visual programming
Bca5020 visual programming
 
Computer programming 2 chapter 1
Computer programming 2  chapter 1Computer programming 2  chapter 1
Computer programming 2 chapter 1
 
Learn C# Programming - Classes & Inheritance
Learn C# Programming - Classes & InheritanceLearn C# Programming - Classes & Inheritance
Learn C# Programming - Classes & Inheritance
 
Mca2030 object oriented programming – c++
Mca2030  object oriented programming – c++Mca2030  object oriented programming – c++
Mca2030 object oriented programming – c++
 
Oop
OopOop
Oop
 
OOP in C#
OOP in C#OOP in C#
OOP in C#
 
What are Abstract Classes in Java | Edureka
What are Abstract Classes in Java | EdurekaWhat are Abstract Classes in Java | Edureka
What are Abstract Classes in Java | Edureka
 
Bt8903, c# programming
Bt8903, c# programmingBt8903, c# programming
Bt8903, c# programming
 
Oops in vb
Oops in vbOops in vb
Oops in vb
 

Viewers also liked

New trends in Earth Sciences- Strategies in Geophysics for hydrocarbon explor...
New trends in Earth Sciences- Strategies in Geophysics for hydrocarbon explor...New trends in Earth Sciences- Strategies in Geophysics for hydrocarbon explor...
New trends in Earth Sciences- Strategies in Geophysics for hydrocarbon explor...Akhil Prabhakar
 
Imix mejores practicas modelos energistics & pmi
Imix   mejores practicas modelos energistics & pmiImix   mejores practicas modelos energistics & pmi
Imix mejores practicas modelos energistics & pmiImixConsulting
 
OOPS features using Objective C
OOPS features using Objective COOPS features using Objective C
OOPS features using Objective CTiyasi Acharya
 
Repsol: Plan Estratégico 2012-2016
Repsol: Plan Estratégico 2012-2016Repsol: Plan Estratégico 2012-2016
Repsol: Plan Estratégico 2012-2016Repsol
 
Capítulo 2 instalaciones de superficie
Capítulo 2   instalaciones de superficieCapítulo 2   instalaciones de superficie
Capítulo 2 instalaciones de superficieFacundo Niziewiz
 

Viewers also liked (9)

Dicas para maduros(as)
Dicas para maduros(as)Dicas para maduros(as)
Dicas para maduros(as)
 
New trends in Earth Sciences- Strategies in Geophysics for hydrocarbon explor...
New trends in Earth Sciences- Strategies in Geophysics for hydrocarbon explor...New trends in Earth Sciences- Strategies in Geophysics for hydrocarbon explor...
New trends in Earth Sciences- Strategies in Geophysics for hydrocarbon explor...
 
Petroleo y gas
Petroleo y gasPetroleo y gas
Petroleo y gas
 
Imix mejores practicas modelos energistics & pmi
Imix   mejores practicas modelos energistics & pmiImix   mejores practicas modelos energistics & pmi
Imix mejores practicas modelos energistics & pmi
 
OOPS features using Objective C
OOPS features using Objective COOPS features using Objective C
OOPS features using Objective C
 
Repsol: Plan Estratégico 2012-2016
Repsol: Plan Estratégico 2012-2016Repsol: Plan Estratégico 2012-2016
Repsol: Plan Estratégico 2012-2016
 
Capítulo 2 instalaciones de superficie
Capítulo 2   instalaciones de superficieCapítulo 2   instalaciones de superficie
Capítulo 2 instalaciones de superficie
 
Fundamentos de Ingenieria de Yacimientos
Fundamentos de Ingenieria de YacimientosFundamentos de Ingenieria de Yacimientos
Fundamentos de Ingenieria de Yacimientos
 
Cpiq upstream hydrocarbon industry final
Cpiq upstream hydrocarbon industry finalCpiq upstream hydrocarbon industry final
Cpiq upstream hydrocarbon industry final
 

Similar to Bt0074, oops with java

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
 
Mca 4030 programming in java
Mca 4030   programming in javaMca 4030   programming in java
Mca 4030 programming in javasmumbahelp
 
Mca 4030 programming in java
Mca 4030   programming in javaMca 4030   programming in java
Mca 4030 programming in javasmumbahelp
 
Mca 4030 programming in java
Mca 4030   programming in javaMca 4030   programming in java
Mca 4030 programming in javasmumbahelp
 
Mi0041 java and web design
Mi0041   java and web designMi0041   java and web design
Mi0041 java and web designsmumbahelp
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newdixonbakerr
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newshyaminfo40
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newcharlesangles123
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newchanduruc123
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newshyaminfo16
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newuopassignment
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newlroselyn
 
Inheritance in OOPs with java
Inheritance in OOPs with javaInheritance in OOPs with java
Inheritance in OOPs with javaAAKANKSHA JAIN
 
Java interview questions 2
Java interview questions 2Java interview questions 2
Java interview questions 2Sherihan Anver
 
Mi0041 java and web design
Mi0041 java and web designMi0041 java and web design
Mi0041 java and web designsmumbahelp
 

Similar to Bt0074, oops with java (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
 
Mca 4030 programming in java
Mca 4030   programming in javaMca 4030   programming in java
Mca 4030 programming in java
 
Mca 4030 programming in java
Mca 4030   programming in javaMca 4030   programming in java
Mca 4030 programming in java
 
Mca 4030 programming in java
Mca 4030   programming in javaMca 4030   programming in java
Mca 4030 programming in java
 
Mi0041 java and web design
Mi0041   java and web designMi0041   java and web design
Mi0041 java and web design
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
 
Intro to Scala
 Intro to Scala Intro to Scala
Intro to Scala
 
DAY_1.1.pptx
DAY_1.1.pptxDAY_1.1.pptx
DAY_1.1.pptx
 
Inheritance in OOPs with java
Inheritance in OOPs with javaInheritance in OOPs with java
Inheritance in OOPs with java
 
Java interview questions 2
Java interview questions 2Java interview questions 2
Java interview questions 2
 
Basic syntax
Basic syntaxBasic syntax
Basic syntax
 
java
java java
java
 
Mi0041 java and web design
Mi0041 java and web designMi0041 java and web design
Mi0041 java and web design
 

Bt0074, oops with 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 Assignment PROGRAM BSc IT SEMESTER THIRD SUBJECT CODE & NAME BT0074, OOPS with JAVA BK ID B1002 CREDIT 4 CREDITS MAX. MARKS 60 1 Describe the syntax and working of if-else with an example. Also write a program in java that assigns a grade based on the value of a test score: an A for a score of 90% or above, a B for a score of 80% or above,and so on. Answer:General if..else syntaxisasfollows:
  • 2. If givenconditionisTRUE, expr_set1will getexecuted. If givenconditionisFALSE(notTRUE), 2 List and explainall the string comparison functions.Write a program in java to reverse a string. Answer:StringComparisonFunctionsare : Comparison Primitives Objects a == b, a != b Equal values Compares references, not values. The use of == with object referencesisgenerallylimitedtothe following:  Comparingtosee if a reference isnull.  Comparing twoenum values. This works because there isonlyone objectfor eachenumconstant. 3 Describe with the helpof an example the implementationofinheritance injava. Answer: The most fundamental element of Java is the class. A class represents an entity and also, defines and implements its functionality. In Java, classes can be derived from other classes, in order to create more complex relationships. A class that is derived from another class is called subclass and inheritsall fieldsandmethodsof itssuperclass.InJava,only
  • 3. 5 Draw and Explainthe Life cycle of a java appletwith an example. Answer: Java applet inherits features from the class Applet. Thus, whenever an applet is created, it undergoes a series of changes from initialization to destruction. Various stages of an applet life cycle are depictedinthe figure below: Initial State Whena newappletisborn or created,itis 6 Define java beansand beanbox. Describe the advantages of java beanbox. Answer: In computing based on the Java Platform, JavaBeans are classes that encapsulate many objects into a single object (the bean). They are serializable, have a zero-argument constructor, and allow access to properties using getter and setter methods. The name "Bean" was given to encompass this standard, whichaimsto create reusable software componentsforJava. Advantages: Dear students get fully solved assignments Send your semester & Specialization name to our mail id :