This download link is referred from the post: GTU BE/B.Tech 2018 Winter Question Papers || Gujarat Technological University
GUJARAT TECHNOLOGICAL UNIVERSITY
BE - SEMESTER-V (OLD) EXAMINATION - WINTER 2018
--- Content provided by FirstRanker.com ---
Subject Code:150704 Date: 11/12/2018Subject Name: Object Oriented Programming With Java
Time: 10:30 AM TO 01:00 PM Total Marks: 70
Instructions:
1. Attempt all questions.
--- Content provided by FirstRanker.com ---
2. Make suitable assumptions wherever necessary.3. Figures to the right indicate full marks.
Q.1 (a) Discuss JVM, JRE, Javadoc. Why java is platform independent 07
language? Mention advantages of Java Programming Language.
(b) Explain Keyword Final, Finally and Finalize with suitable example. 07
--- Content provided by FirstRanker.com ---
Q.2 (a) Discuss features and advantages of Abstract. Write one example. 07
(b) What is collection in Java? What are different collection classes available 07
in java.
OR
(b) Write a java program to calculate total and average to five values. Pass 07
--- Content provided by FirstRanker.com ---
input values as constructor parameter. Q.3 (a) Discuss 1) Applet and Application (ii) Interface 07
i1) String class and StringBuffer class
(b) Write a java program to input two values as command line parameter 07
and print summation of both values. Discuss Wrapper class functionality
--- Content provided by FirstRanker.com ---
here. OR
Q.3 (a) Draw and explain lifecycle of Applet. 07
(b) Discuss Thread life cycle. Explain‘wait, notify, notifyall, synchronized 07
methods of thread with example.
--- Content provided by FirstRanker.com ---
Q.4 (a) Write short note on package. Also discuss steps to create and 07
implement user defined-package.
(b) What is Exception? How it is handled in Java? List out inbuilt java 07
exception classes. How user can create his own exception class?
OR
--- Content provided by FirstRanker.com ---
Q.4 (a) What is inheritance in java? Explain different types of inheritance with 07proper examples.
(b) How we can read input values using Scanner class? Demonstrate with 07
one java example.
Q.5 (a) Explain user of static and super keyword. What is method overriding in 07
--- Content provided by FirstRanker.com ---
java?(b) Write a Java program to read students data and write it to student.txt file 07
using Java file handling.
OR
Q.5 (a) Explain Event Handling in java and describe how mouse event and key 07
--- Content provided by FirstRanker.com ---
press events are handled?(b) Explain different layouts in Java Applets with suitable example. 07
--- Content provided by FirstRanker.com ---
This download link is referred from the post: GTU BE/B.Tech 2018 Winter Question Papers || Gujarat Technological University