Roll No. _________________________________ Total No. of Pages : 02
Total No. of Questions : 09
MCA (2015 & Onwards) (Sem.-3)
--- Content provided by FirstRanker.com ---
JAVA PROGRAMMING
Subject Code : MCA-304
M.Code : 74076
Time : 3 Hrs. Max. Marks : 60
INSTRUCTIONS TO CANDIDATES :
--- Content provided by FirstRanker.com ---
- SECTIONS-A, B, C & D contains TWO questions each carrying TEN marks each and students have to attempt any ONE question from each SECTION.
- SECTION-E is COMPULSORY consisting of TEN questions carrying TWENTY marks in all.
SECTION-A
- Discuss method overloading and overriding in detail with example. (10)
-
- What is Object Oriented Programming? What are silent features of it? Explain the structure of Java program. (7)
- List the differences between Java and C. (3)
--- Content provided by FirstRanker.com ---
SECTION-B
- What is Package? Write a Program in Java to explain the concept and use of Package. (10)
- What are the various ways of creating a thread? How synchronization can be added in Java's thread? Illustrate with example. (10)
--- Content provided by FirstRanker.com ---
SECTION-C
- What is an Applet? How do applets differ from application programs? How arguments can be passed to an applet? (10)
-
- What is the use of JDBC? Explain with suitable examples. (5)
- What is a Swing? Explain the concept and role of swings briefly with a program in Java. (5)
--- Content provided by FirstRanker.com ---
SECTION-D
- What is Servlet? Explain different types of servlets with suitable examples. (10)
- Write various methods associated with TCP and UDP sockets. Also differentiate between TCP and UDP sockets. (10)
SECTION-E
- Write short notes on following with help of example/diagram if needed: (2×10 = 20)
- How are arrays declared in JAVA?
- doPOST method
- JSP
- Method Overriding
- Autoboxing and Unboxing
- Garbage Collection
- User defined Exceptions
- HttpServlet
- Dynamic Binding
- Java Development Kit
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
NOTE : Disclosure of Identity by writing Mobile No. or Making of passing request on any page of Answer Sheet will lead to UMC against the Student.
--- Content provided by FirstRanker.com ---
This download link is referred from the post: PTU MCA Last 10 Years 2011-2021 Previous Question Papers|| Punjab Technical University