This download link is referred from the post: PTU B.Tech Question Papers 2020 March (All Branches)
Roll No. HEEEEEEEEEEE Total No. of Pages : 02
Total No. of Questions : 09
--- Content provided by FirstRanker.com ---
B.Tech.(IT) (2012 to 2017 E-lll) (Sem.-7)
ADVANCED JAVA
Subject Code : BTIT-906
M.Code : 71990
Time : 3 Hrs. Max. Marks : 60
--- Content provided by FirstRanker.com ---
INSTRUCTIONS 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 have to attempt any FOUR questions.
- SECTION-C contains THREE questions carrying TEN marks each and students have to attempt any TWO questions.
SECTION-A
--- Content provided by FirstRanker.com ---
- Write briefly :
- What is the purpose of volatile keyword in Java?
- Differentiate between start and run method in Java Thread.
- List any four public members of java.io.OutputStream.
- Write any four characteristics of serializable interface.
- How to connect Java-application with Oracle and Mysql database using JDBC?
- For what purpose native API driver is used?
- List the advantages of Java beans.
- “Like generic class, we can create generic method that can accept any type of argument”. Comment.
- Name the built-in Java annotations used in other annotations.
- How user defined annotations are created in Java?
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
SECTION-B
- “Callable is same as Runnable but it can return any type of Object if we want to get a result or status from work (callable)”. Justify your answer with suitable reasoning.
- What is console class? How can we access multiple files by single stream?
- Discuss the various commonly used methods of ResultSet interface. Give suitable examples.
- How wildcard is used in Java generics? Explain with suitable Java program.
- Why do we need annotations in Java? How do annotations work?
--- Content provided by FirstRanker.com ---
SECTION-C
- Discuss the process of inter-thread communication. Draw a well labeled diagram to represent thread life cycle in Java.
- Discuss the concept of erasure in generics in Java. What are the effects of Type Erasure and Bridge Methods in Java?
- “Protecting a bytestream outside the Java virtual machine is to encrypt the stream produced by the serialization package. Encrypting the bytestream prevents the decoding and the reading of a serialized object’s private state”. Explain with 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 Question Papers 2020 March (All Branches)