This download link is referred from the post: PTU B.Tech 5th Semester Last 10 Years 2011-2021 Previous Question Papers|| Punjab Technical University
FirstRanker.com
Firstranker's choice
Roll No. LT TP Total No. of Pages : 02
--- Content provided by FirstRanker.com ---
Total No. of Questions : 18B.Tech. (ECE) (Sem.-5)
JAVA PROGRAMMING
Subject Code : UC-BTEC-901F-18
M.Code : 78761
--- Content provided by FirstRanker.com ---
Time : 3 Hrs. Max. Marks : 60INSTRUCTIONS 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.
--- Content provided by FirstRanker.com ---
SECTION-A
Write briefly :
- What do you understand from ‘public static void main (String [] args)’?
- Differentiate between JVM, JRE and JDK.
- What are access modifiers? List various types of access modifiers in Java.
- What are wrapper classes in Java?
- Why is Java considered portable language?
- What is the difference between ‘StringBuffer’ and ‘StringBuilder’?
- How to determine factorial of an integer using Java?
- What is Object Oriented Programming approach?
- What is lambda expression in Java? Give an example.
- What are encapsulation and polymorphism in Java?
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
SECTION-B
- What are the advantages and disadvantages of Java over C++?
- Write a Java program to check if the given number is prime number or not?
- What is inheritance in Java? Write a program to showcase inheritance.
- What are different ways of creating objects in Java? Give examples.
- Write a Java program to swap two numbers without using a third variable?
--- Content provided by FirstRanker.com ---
SECTION-C
- a) What are data types in Java and their required memory sizes to store values?
--- Content provided by FirstRanker.com ---
b) List various operators in Java and give their precedence order. - a) What is function overloading in Java?
b) Why does Java not support (i) multiple inheritances and (ii) pointers? - a) What is applet in Java? Discuss it life cycle.
b) What are different steps involved in database connectivity?
--- 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 5th Semester Last 10 Years 2011-2021 Previous Question Papers|| Punjab Technical University