Sunday, 14 June 2015

bt0074 smu bsc it Spring 2015 IIIrd sem assignment

Get fully solved assignment. Buy online from website
online store
or
plz drop a mail with your sub code
we will revert you within 2-3 hour or immediate
Charges rs 125/subject and rs 625/semester only.
if urgent then call us on 08791490301, 08273413412

PROGRAM BSc IT
SEMESTER THIRD
SUBJECT CODE &
NAME
BT0074, OOPS with JAVA
Q1. 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. 10
Answer:
Use the else if statement to specify a new condition if the first condition is false.
Syntax


Q2. List and explain all the string comparison functions. Write a program in java to reverse a string.
Answer:
String Comparison
The String class includes several methods that compare strings or substrings within strings.


Qus:3 Describe with the help of an example the implementation of inheritance in java.
Answer:
The implementation of inheritance in java:
The extends keyword is used to derive a class from a superclass, or in other words, extend the functionality of a superclass.

Syntax


Qus:4 Describe the catch and finally block statement with examples.
Answer:
The catch and finally block statement in java:
Catch block:
It can associate an exception-handler with the try block by providing one or more catch handlers immediately after try block. The following skeletal code illustrates the use of the catch block.

try
{



Qus:5 Draw and Explain the Life cycle of a java applet with an example.
Answer:
Diagram of the Life cycle of a java applet:


Q6. Define java beans and bean box. Describe the advantages of java beanbox. 10

Answer: Java Beans: JavaBeans is the software component architecture for Java. It allows constructing applications efficiently by configuring and connecting components called Beans. The Beans need to be written and tested with a rich set of mechanisms for interaction between objects, along with common actions that most objects will need to support such as persistence and event handling.
Get fully solved assignment. Buy online from website
online store
or
plz drop a mail with your sub code
we will revert you within 2-3 hour or immediate
Charges rs 125/subject and rs 625/semester only.
if urgent then call us on 08791490301, 08273413412


No comments:

Post a Comment