Roll No.
Total No. of Questions : 07
MAY 2014
B.Sc.(IT)
(Sem.–4th)
CORE JAVA
PROGRAMMING
Subject Code :
BS-202
Time : 3 Hrs.
NOTE: Section A is compulsory. Attempt three question
form section B.
1.
Explain
in brief:
a.
Why is java platform independent?
b.
What will be the output of i<<2
i>>2, where int I =12
c.
What is the use of static keyword in Java
d.
Where do we use finalize keyword.
e.
Difference between break and continue.
f.
What is a package in Java? What is its use?
g.
Why do we need a HTML page to exeute an applet?
h.
Difference between error and exception.
i.
What is method overriding?
j.
Difference between public and default access.
Section –B
2.
a.
Write a program to calculate the area and
perimeter of different shapes in java to explain the concept of inheritance.
b.
Write a short note on differences between java
and C++
3.
Write java code (without using String class) for
a class called MyString. It should have appropriate data members. Constructors
and member methods to concatenate copy and find the length of a string. How
would you test this class?
4.
What is an exception? Discuss with the help of
an example program how an exception can be handled in java?
5.
a.
What is a web browser? Compare the features of
Internet Explorer and Netscape
Navigator.
b.
What features of
java make it suitable to be used on Internet?
6.
What is an interface ? how interfaces can be used to implement the
concept of multiple inheritance in Java.
0 comments:
Post a Comment
North India Campus