Java Qs
Java Qs
Name..
FIRST SEMESTER Reg. No..******************ee
M.C.A. DEGREE **
(REGUILAR/SUPPLEMENTARY)
EXAMINATION, NOVEMBER 2021
M.C.A.
MCA 20 102-PROGRAMMING
IN JAVA
(2020 Syllabus Year)
Time Three Hours
Maximum : 100 Marks
Answer any five full questions.
Each question carries
1.
20 marks
(A) What is inheritance
explain difference form of
(B) Write a java
inheritance in java? (10 marks)
program to sort numbers using arrays.
2. (A) (10 marks)
What are tBe control structures in java program?
(B) (10 marks)
Explain how JAVA achieves multiple inheritance
using interfaces? Explain with
example.
3. (10 marks)
(A) Explain How can we assign priority to a
1 and 10 ? Explain. thread? Does the priority value always lie between
(5 marks)
(B) What do you mean by
'synchronization'? Why do we need it?
(5 marks)
(C) Write a note on exception handlihg in java
(10 marks)
4. (A) Discuss event handling mechanism in Java.
(10 marks)
(B) Describe the terms ActionEvent and
Actionlistener with example. (10 marks)
5. (A) Explain JD.3C architecture.
(10 marks)
(B) Explain anl demonstrate JDBC concepts for searching Student table
using roll no.
(10 marks)
6. (A) Discuss thread
synchronization and inter thread communication. (10 marks)
(B) Discuss any four built-in packages in
java. (10 marks)
7: (A) Write java program to display even no between 0' to 20.
(10 marks)
(B) What is ment by
Command-Line Arguments ? Illustrate with an example. (10 marks)
5x 20 100 marks]
181608
D 941099 (Pages 2) Name.osessn.
Reg. No..
ce*e**********e****.
Turn over
? D 94109
(b) Explain the use of graphics class
in Java. (4 marks)
(c) What the
are
advantages of using Swing API? List any five containers and
available in Swing API. components