SlideShare a Scribd company logo
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 3
SUBJECT CODE & NAME BT0074, OOPS with JAVA
CREDIT 4
BK ID B1002
MAX.MARKS 60
Note: Answer all questions. Kindly note that answers for 10 marks questions should be approximately
of 400 words. Each questionis followedbyevaluationscheme.
1 What are the keywords that java supports? Describe the data types available in java programming
language.
Answer: In the Java programming language, a keyword is one of 50 reserved words that have a
predefined meaning in the language; because of this, programmers cannot use keywords as names for
variables, methods, classes, or as any other identifier. Due to their special functions in the language,
most integrated development environments for Java use syntax highlighting to display keywords in a
differentcolorforeasyidentification.
2 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:
3 Describe with the helpof an example the implementationofinheritance injava.
Answer: Inheritance in Java is an Object oriented or OOPS concepts, which allows to emulate real world
Inheritance behavior, Inheritance allows code reuse in Object oriented programming language e.g. Java.
Along with Abstraction, Polymorphism and Encapsulation, Inheritance forms basis of Object oriented
programming. Inheritance is implemented using extends keyword in Java and When one Class extends
another Class it inherit all non private members including fields and methods. Inheritance in Java can be
best understand in terms of Parent and Child class, also known as Super class and Sub class in Java
programming language. The class which extends another class becomes Child of the class it extends and
inheritall itsfunctionalitywhichisnotprivate
4 Describe the catch and finallyblockstatement injava with examples.
Answer:
 A finally statement must be associated with a try statement. It identifies a block of statements
that needstobe executedregardlessof whetherornotan exceptionoccurswithinthe tryblock.
 After all other try-catch processing is complete, the code inside the finally block executes. It is
not mandatory to include a finally block at all, but if you do, it will run regardless of whether an
exceptionwasthrownandhandledbythe tryand catch parts of the block.
 In normal executionthe finally


5 Draw and Explainthe Life cycle of a java appletwith an example.
Answer:
/*
AppletLife Cycle Example
Thisjavaexample explainsthe lifecycle of Javaapplet.
*/
importjava.applet.Applet;
importjava.awt.Graphics;
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:
 The properties,events,andmethodsof 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

DOCX
Bt0074
DOCX
Mca 4030 programming in java
DOCX
Mca 4030 programming in java
DOCX
Mi0041 java and web design
DOCX
Mi0041 java and web design
DOCX
Mi0041 java and web design
DOCX
Mi0041 java and web design
DOCX
Mi0041 java and web design
Bt0074
Mca 4030 programming in java
Mca 4030 programming in java
Mi0041 java and web design
Mi0041 java and web design
Mi0041 java and web design
Mi0041 java and web design
Mi0041 java and web design

What's hot (19)

DOCX
Mit103 object oriented programming
DOCX
Mca2030 object oriented programming – c++
DOCX
Bt0074, oops with java
DOCX
Mca2030 object oriented programming – c++
DOCX
Bt0074, oops with java
DOCX
Bt8903,c# programming
PPTX
Coding conventions
DOCX
Bca5020 visual programming
DOCX
Bca5020 visual programming
DOCX
Mca2030 object oriented programming – c++
PPTX
Coding conventions
PPTX
OOP in C#
PPTX
Polymorphism
PPTX
Unusual C# - OOP
PDF
Java & J2EE Coding Conventions
PDF
Reoprt on indutrial training
PDF
I1-I3orIB1-IB2
PDF
37 Java Interview Questions
DOCX
Mit4021–%20 c# and .net
Mit103 object oriented programming
Mca2030 object oriented programming – c++
Bt0074, oops with java
Mca2030 object oriented programming – c++
Bt0074, oops with java
Bt8903,c# programming
Coding conventions
Bca5020 visual programming
Bca5020 visual programming
Mca2030 object oriented programming – c++
Coding conventions
OOP in C#
Polymorphism
Unusual C# - OOP
Java & J2EE Coding Conventions
Reoprt on indutrial training
I1-I3orIB1-IB2
37 Java Interview Questions
Mit4021–%20 c# and .net
Ad

Viewers also liked (17)

PPTX
『오피뷰』&【OPGANDA컴】 동탄휴게텔、『오피+VIEW』 마포휴게텔つ 인계동휴게텔
PPTX
Unresolved conflicts in family relationships
PPT
Jeopardy 1
PPT
External Academic Audit (2012-2013)-R.D.Sivakumar
PPTX
클라우드 서비스
PDF
The power of cognitive interviewing and what qualitative research can learn f...
PDF
아라한사의 스프링 시큐리티 정리
PPTX
677-Session 11-Data Analysis-S12
PPT
Endeavor IV-A Randomized Comparison of a Zotarolimus-Eluting Stent Endeavor...
PPT
농어촌세미나 주님의교회
PPTX
제8장 평가와 입시 김주연
PPTX
MCG Spring meeting presentation: The Staffordshire Hoard
PPSX
오삼산악회 소똥령산행
PDF
PSD Associates Case Study - "Ride The Roller Coaster"
PPTX
Google apps (구글앱스) unlimited 소개
PPT
미래지향적인 박현준 브랜드 스토리텔링 (Pt)
PPTX
XE 오픈 세미나(2014-04-26) - 김민수 "XE 나에게 넌~"
『오피뷰』&【OPGANDA컴】 동탄휴게텔、『오피+VIEW』 마포휴게텔つ 인계동휴게텔
Unresolved conflicts in family relationships
Jeopardy 1
External Academic Audit (2012-2013)-R.D.Sivakumar
클라우드 서비스
The power of cognitive interviewing and what qualitative research can learn f...
아라한사의 스프링 시큐리티 정리
677-Session 11-Data Analysis-S12
Endeavor IV-A Randomized Comparison of a Zotarolimus-Eluting Stent Endeavor...
농어촌세미나 주님의교회
제8장 평가와 입시 김주연
MCG Spring meeting presentation: The Staffordshire Hoard
오삼산악회 소똥령산행
PSD Associates Case Study - "Ride The Roller Coaster"
Google apps (구글앱스) unlimited 소개
미래지향적인 박현준 브랜드 스토리텔링 (Pt)
XE 오픈 세미나(2014-04-26) - 김민수 "XE 나에게 넌~"
Ad

Similar to Bt0074, oops with java (20)

PPTX
Chapter5.pptxfghwryhYETHYETH67IOIKUTJJUILOUI
PPTX
Internet and Web Technology (CLASS-15) [JAVA Basics] | NIC/NIELIT Web Technol...
PPTX
Basics of Java
PPTX
DOCX
Java Interview Questions For Freshers
PPTX
PPT Lecture-1.4.pptx
DOCX
Mcs 024 assignment solution (2020-21)
PDF
Bt0074 oops with java2
PDF
Java for android developers
PPTX
OOP-JAVA-ONLYUNIT-2-PPT_removed (1).pptx
PDF
Java Interview Questions
PPT
Java_notes.ppt
PDF
Lectupopplkmkmkkpompom-0ookoimmire 2.pdf
PPT
ANDROID FDP PPT
PPTX
Inheritance Interface and Packags in java programming.pptx
PPTX
Java interview-quetions
PPTX
Java - Inheritance_multiple_inheritance.pptx
PDF
Probable questions for semester exam
PPTX
Inheritance in OOPs with java
Chapter5.pptxfghwryhYETHYETH67IOIKUTJJUILOUI
Internet and Web Technology (CLASS-15) [JAVA Basics] | NIC/NIELIT Web Technol...
Basics of Java
Java Interview Questions For Freshers
PPT Lecture-1.4.pptx
Mcs 024 assignment solution (2020-21)
Bt0074 oops with java2
Java for android developers
OOP-JAVA-ONLYUNIT-2-PPT_removed (1).pptx
Java Interview Questions
Java_notes.ppt
Lectupopplkmkmkkpompom-0ookoimmire 2.pdf
ANDROID FDP PPT
Inheritance Interface and Packags in java programming.pptx
Java interview-quetions
Java - Inheritance_multiple_inheritance.pptx
Probable questions for semester exam
Inheritance in OOPs with java

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 3 SUBJECT CODE & NAME BT0074, OOPS with JAVA CREDIT 4 BK ID B1002 MAX.MARKS 60 Note: Answer all questions. Kindly note that answers for 10 marks questions should be approximately of 400 words. Each questionis followedbyevaluationscheme. 1 What are the keywords that java supports? Describe the data types available in java programming language. Answer: In the Java programming language, a keyword is one of 50 reserved words that have a predefined meaning in the language; because of this, programmers cannot use keywords as names for variables, methods, classes, or as any other identifier. Due to their special functions in the language, most integrated development environments for Java use syntax highlighting to display keywords in a differentcolorforeasyidentification. 2 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. 3 Describe with the helpof an example the implementationofinheritance injava. Answer: Inheritance in Java is an Object oriented or OOPS concepts, which allows to emulate real world Inheritance behavior, Inheritance allows code reuse in Object oriented programming language e.g. Java. Along with Abstraction, Polymorphism and Encapsulation, Inheritance forms basis of Object oriented programming. Inheritance is implemented using extends keyword in Java and When one Class extends another Class it inherit all non private members including fields and methods. Inheritance in Java can be best understand in terms of Parent and Child class, also known as Super class and Sub class in Java programming language. The class which extends another class becomes Child of the class it extends and inheritall itsfunctionalitywhichisnotprivate 4 Describe the catch and finallyblockstatement injava with examples. Answer:  A finally statement must be associated with a try statement. It identifies a block of statements that needstobe executedregardlessof whetherornotan exceptionoccurswithinthe tryblock.  After all other try-catch processing is complete, the code inside the finally block executes. It is not mandatory to include a finally block at all, but if you do, it will run regardless of whether an exceptionwasthrownandhandledbythe tryand catch parts of the block.  In normal executionthe finally   5 Draw and Explainthe Life cycle of a java appletwith an example. Answer: /* AppletLife Cycle Example Thisjavaexample explainsthe lifecycle of Javaapplet. */ importjava.applet.Applet; importjava.awt.Graphics; 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:  The properties,events,andmethodsof a
  • 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