This download link is referred from the post: GTU B.Tech 2020 Winter Question Papers || Gujarat Technological University
GUJARAT TECHNOLOGICAL UNIVERSITY
BE- SEMESTER-V (NEW) EXAMINATION - WINTER 2020
--- Content provided by FirstRanker.com ---
Subject Code:3153203 Date:03/02/2021Subject Name:Object Oriented Programming with Java
Time:10:30 AM TO 12:30 PM Total Marks: 56
Instructions:
1. Attempt any FOUR questions out of EIGHT questions.
--- Content provided by FirstRanker.com ---
2. Make suitable assumptions wherever necessary.3. Figures to the right indicate full marks.
MARKS
Q.1 (a) Define following: 1) Byte code 2) JVM 3) Unicode 03
(b) What is Java? Explain any four features? 04
--- Content provided by FirstRanker.com ---
(c) Write a program to check whether the input number is a 07palindrome or not without using reverse() method of
String class? E.g. a palindrome is a sequence of
characters/numbers which reads the same backward as
forward like 323, 45654 etc.
--- Content provided by FirstRanker.com ---
Q.2 (a) What is the difference between String & StringBuffer? 03
Explain with examples.
(b) State difference between with e.g.: 04
Abstract & interfaces
Method Overloading & Method overriding
--- Content provided by FirstRanker.com ---
(c) Write a program called SumDigits to sum up the 07individual digits of a positive- integer, given in the
command line. An example is-shown below:
java SumDigits 12345
The sum of digits =1)+2+3 +4+5=15
--- Content provided by FirstRanker.com ---
Q.3 (a) State the difference between with examples with respect 03
to string handling in java:
1. append() and insert()
2. length() and capacity()
(b) What is a thread? Discuss java thread model? 04
--- Content provided by FirstRanker.com ---
(c) What are packages in JAVA? Explain their types and utility 07while programming in java language?
Q.4 (a) State the difference between final and finally keyword? 03
(b) What are streams? Explain their types? 04
(c) Write a program using Character streams to copy from file 07
--- Content provided by FirstRanker.com ---
from.txt, one byte at a time to a new file to.txt.Q.5 (a) What is an exception? State its types? 03
(b) Explain the Client-Server Architecture and its 04
components?
(c) Write a program to create an object of the Collections 07
--- Content provided by FirstRanker.com ---
class LinkedList and add and remove elements from it?Show all the cases of adding and removing elements at
first, last and specific index in the program.
Q.6 (a) What Is a Collections Framework? 03
(b) Explain garbage collection and 04
--- Content provided by FirstRanker.com ---
importance of finalize keyword?(c) Write a program for java socket programming where 07
client sends a text and server receives and prints it?
Q.7 (a) What are object and class diagram? Explain with example. 03
(b) Draw a sequence diagram for an ATM operation 04
--- Content provided by FirstRanker.com ---
management system?(c) Draw a state diagram for answering a telephone call? 07
Q.8 (a) Explain multiplicity and its notations used in class 03
diagram?
(b) State the difference between: 04
--- Content provided by FirstRanker.com ---
1. Link and Associations2. Generalization and Specialization
(c) Draw a use case diagram for a University Management 07
System?
--- Content provided by FirstRanker.com ---
This download link is referred from the post: GTU B.Tech 2020 Winter Question Papers || Gujarat Technological University
--- Content provided by FirstRanker.com ---