This download link is referred from the post: PTU B.Tech Dec 2018 5th Semester Question Papers || Punjab Technical University
Roll No. EEEEEEEEEEE Total No. of Pages : 02
Total No. of Questions : 09
--- Content provided by FirstRanker.com ---
B.Tech. (IT) (2011 Onwards) (Sem.-5)
PROGRAMMING IN JAVA
Subject Code : BTIT-502
M.Code : 70595
Time : 3 Hrs. Max. Marks : 60
--- Content provided by FirstRanker.com ---
INSTRUCTION TO CANDIDATES :
- SECTION-A is COMPULSORY consisting of TEN questions carrying TWO marks each.
- SECTION-B contains FIVE questions carrying FIVE marks each and students has to attempt any FOUR questions.
- SECTION-C contains THREE questions carrying TEN marks each and students has to attempt any TWO questions.
SECTION-A
--- Content provided by FirstRanker.com ---
Q1 Answer briefly :
- Use of wrapper class.
- Java tokens.
- String buffer.
- Limitations of Java programming language.
- Layout manager.
- Socket.
- Difference between throw and throws.
- This pointer.
- List the different stages in the life cycles of a thread.
- What are applets?
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
SECTION-B
- Explain Java garbage collection mechanism.
- How packages are created and accessed in Java. Briefly explain the naming convention in packages?
- Explain the steps involved in creating and executing a java program.
- Write a Java code that generates custom exception if any value from its command line arguments is negative.
- Explain the life cycle of applet.
--- Content provided by FirstRanker.com ---
SECTION-C
- Write a program in Java to find nth prime number where n is any integer and should be taken as input from the user.
- Explain the difference between method overriding and method overloading with the help of suitable example.
- What is multithreading in Java? Explain the inter thread communication with the help of suitable example.
--- 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 B.Tech Dec 2018 5th Semester Question Papers || Punjab Technical University