Visit [Link].
com for more
Visit [Link] for more
Visit [Link] for more
Visit [Link] for more
Visit [Link] for more
Visit [Link] for more
Visit [Link] for more
aminotes
[No. of Printed Pages_
6]
IT201
Enrol. No ...............
[ET
]
END SEMESTER EXAMINATION : APRIL-MAY, 2016
JAVA PROGRAlVIMING
Time: 3 Hr$. Maximum Marks : 70
N otc: Attempt questions from all sections as directed.
SECTION - A (30 lVIarks)
Attempt any five questions out of six.
Each question carries 06 marks.
1. Discuss the criteria's for applying the concept of
interface and abstract class in the context of Java
programming. Take an appropriate programming
example to support your criteria' s.
2. (a) Discuss the various types of access protection
policies of packages in JAVA. (3)
(b) Identify and list the errors if any in the
following interfaces ? Also fix the errors if
found. (3)
public interface SomethingisWrong {
P.T.O.
(722)
IT201 2
aminotes
void aMethod(int aValue) {
[Link]. println("Hi Mom");
3. If multiple threads are running concurrently then during
their communication the synchronization problem may
occur, so discuss the ways to resolve the problem
with suitable example ?
4. AWT components are few challenges such as look
and feel, speed and memory. Is there any other
alternative component available to handle these
challenges ? Also discuss how that component better
then AWT component.
5. Discuss the event delegation model 1n Java. Also
explain the basic components of it.
6. Differentiate between:
(a) this and super (2)
(b) final, finally and finalize (2)
(c) String and StringBuffer (2 )
(722)
IT201 3
aminotes
SECTION - B (20 IVlarks)
Allempt anv two questions out of three.
Ench question carries 10 marks.
7. (a) An University has applied p ro rnotion criteria fo r
students. According to criteria a student cannot
promote to next academic year if he have less than 4.5
CGPA. A developer is trying to implement this
situation using exception handling in JAVA. Write a
correct Java code to help him. (5)
(b) A palindrome is a string that is spelled the same way
backward and forward. For example, mom, dad, radar,
727 are all examples of palindrornes. Write a program
that lets the user type a word and then determines
whether the string 1s a palindrome. (5)
S. (a) Explain the life cycle of a thread, also write a program to
find the factorial of range 1-10 using two threads. (5)
(b) Explain Life Cycle of an Applet 1n Java with suitable
example. (5)
9. (a) Design an applet to demostrate the smiley
Applet. (3)
P.T.O.
(722)
IT201 4
aminotes
(b) In a School class, there are three major subjects
Physics, Chemistry and Math. The faculty has
evaluated the result and stored in a text files named
"[Link]", "[Link]" and "[Link]",
respectively. Write a Java program to publish the
result in another text fi. named "[Link]", it
le
will
. contain the percentage marks obtained be
summing the marks of the subjects. (7) I
SECTION - C (20 Marks)
(Compulsory)
10. (a) public class Date
{
public int day; public
int month; public int
year;
public Date(int d, int m, int y)
Day= d;
Month=m; . . ..
Year=y;
(722)
aminotes
aminotes
Visit [Link] for more
Visit [Link] for more
Visit [Link] for more
Visit [Link] for more
aminotes
Visit [Link] for more
aminotes
Visit [Link] for more
aminotes
Visit [Link] for more
aminotes
Visit [Link] for more
aminotes
Visit [Link] for more
aminotes
Visit [Link] for more