0% found this document useful (0 votes)
41 views3 pages

Diploma Winter 2014

This document contains a Gujarati exam for the Java Programming subject. It has 5 sections with multiple choice and long answer questions. Section 1 contains 10 questions about OOP concepts, the JVM, Java packages, keywords like super, inheritance, garbage collection, threads and exceptions. Section 2 has questions comparing Java and C++, arrays, copy constructors, overloading vs overriding and threads. Section 3 focuses on writing Java programs related to arrays, threads, exceptions and access controls. Section 4 involves writing programs using constructors, files and interfaces. Section 5 covers streams, control statements, abstract classes and packages.

Uploaded by

Lalwani Pooja
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views3 pages

Diploma Winter 2014

This document contains a Gujarati exam for the Java Programming subject. It has 5 sections with multiple choice and long answer questions. Section 1 contains 10 questions about OOP concepts, the JVM, Java packages, keywords like super, inheritance, garbage collection, threads and exceptions. Section 2 has questions comparing Java and C++, arrays, copy constructors, overloading vs overriding and threads. Section 3 focuses on writing Java programs related to arrays, threads, exceptions and access controls. Section 4 involves writing programs using constructors, files and interfaces. Section 5 covers streams, control statements, abstract classes and packages.

Uploaded by

Lalwani Pooja
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Seat No.: ________ Enrolment No.

___________
GUJARAT TECHNOLOGICAL UNIVERSITY
DIPLOMA ENGINEERING - SEMESTER–V • EXAMINATION – WINTER • 2014
Subject Code: 3350703 Date: 02-12-2014
Subject Name: Java Programming
Time: 10:30 am - 01:00 pm Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
4. English version is considered to be Authentic.

Q.1 Answer any seven out of ten 14


1. List four different OOP concepts.
2. Describe JVM.
3. State the name of any four inbuilt Java package.
4. State the importance of super keyword in Java.
5. List four types of Inheritance.
6. State the importance of garbage collection.
7. Describe main() method in Java.
8. List four different inbuilt exceptions of Java.
9. State the importance of byte code.
10. Define thread. State two ways to create a thread.
Q.2 (a) Write any four differences between Java and C++. 04
OR
(a) List types of array and Explain variable type (Non Rectangular type) array 04
with example.
(b) Explain copy constructor in Java. 03
OR
(b) Differentiate between method overloading and method overriding. 03
(c) Explain thread priorities with suitable example. 04
OR
(c) Explain life cycle of a thread. 04
(d) Explain basic structure of Java programs. 03
OR
(d) List different features of Java. Explain any one of it. 03
Q.3 (a) Write a Java Program to sort array of 5 integer numbers in ascending order. 05
OR
(a) Write a Java program to read two strings from command line argument and 05
check the equality of two string using string function.
(b) Write a Java program that executes two threads. One thread will print the even 05
numbers and another thread print odd numbers between 1 to 50.
OR
(b) Write a Java Program to develop user defined exception for ‘Divide by Zero’ 05
error.
(c) Explain ArrayIndexOutOfBound Exception in Java with example. 04
OR
(c) Explain different Access Controls in Java. 04
Q.4 (a) Write a Java program to calculate area of circle using constructor. 03
OR
(a) Write a Java program to print first five terms of Fibonacci series. 03
1/3
(b) Write a program in Java to create a text file and perform read operation on the 04
text file.
OR
(b) Write a program in Java to create a text file and perform write operation on 04
the text file.
(c) Explain Interface concept with example. 07
Q.5 (a) Explain basics of stream classes. 04
(b) Distinguish between break and continue statements in Java. 03
(c) Explain abstract and final keywords with example. 04
(d) Explain concept of user defined package in brief. 03

************

ુ રાતી
ગજ

પ્રશ્ન. ૧ દશમ થ
ાં ી કોઇપણ સ તન જવ બ આપો. ૧૪
૧. OOPન ચ ર મુદ્દ ની ય દી બન વો.
૨. JVM વણણવો.
૩. કોઇપણ ચ ર inbuilt Java Packageન ન મ આપો.
૪. Javaમ વપર ત super keywordની અગત્યત સમજાવો.
૫. ચ ર પ્રક રન Inheritanceની ય દી બન વો.
૬. Garbage collectionની અગત્યત સમજાવો.
૭. Javaની main() method વણણવો.
૮. Javaન ચ ર જુદ જુદ inbuilt exceptionsની ય દી બન વો.
૯. Byte codeની અગત્યત સમજાવો.
૧૦ Threadની વ્ય ખ્ય આપો. Thread બન વવ ની બે રીતો લખો.

પ્રશ્ન. ર અ Java અને C++ વચ્ચેન કોઇપણ ચ ર તવ વત લખો. ૦૪


અથવ
અ Aarrayન પ્રક રોની ય દી બન વો અને variable type (Non Rectangular type) ૦૪
array ઉદ હરણ સહહત સમજાવો.
બ Javaનુાં copy constructor સમજાવો. ૦૩
અથવ
બ Method overloading અને method overriding વચ્ચેનો તવ વત લખો. ૦૩
ક Thread priorities યોગ્ય ઉદ હરણ આપી સમજાવો. ૦૪
અથવ
ક Threadની life cycle સમજાવો. ૦૪
ડ Java programનુાં પ્ર થમમક મ ળખુ ાં સમજાવો. ૦૩
અથવ
ડ Javaન મવમવધ હવચસણની ય દી બન વો. તેમ થી કોઇપણ એક સમજાવો. ૦૩
2/3
પ્રશ્ન. ૩ અ Write a Java Program to sort array of 5 integer numbers in ascending order. ૦૫
અથવ
અ Write a Java program to read two strings from command line argument and ૦૫
check the equality of two string using string function.
બ Write a Java program that executes two threads. One thread will print the ૦૫
even numbers and another thread print odd numbers between 1 to 50.
અથવ
બ Write a Java Program to develop user defined exception for ‘Divide by ૦૫
Zero’ error.
ક Javaનુાં ArrayIndexOutOfBound Exception ઉદ હરણ સહહત સમજાવો. ૦૪
અથવ
ક Java ન મવમવધ Access Controls સમજાવો. ૦૪

પ્રશ્ન. ૪ અ Write a Java program to calculate area of circle using constructor. ૦૩


અથવ
અ Write a Java program to print first five terms of Fibonacci series. ૦૩
બ Write a program in Java to create a text file and perform read operation on ૦૪
the text file.
અથવ
બ Write a program in Java to create a text file and perform write operation on ૦૪
the text file.
ક Interfaceનો મુદ્દો ઉદ હરણ સહહત સમજાવો. ૦૭

પ્રશ્ન.૫ અ Stream classesની પ્ર થમમકત સમજાવો. ૦૪


બ Javaન break અને continue statements વચ્ચેનો તવ વત લખો. ૦૩
ક Abstract અને final keyword ઉદ હરણ સહહત સમજાવો. ૦૪
ડ Javaનો user defined packageનો મુદ્દો ટાંકમ ાં સમજાવો. ૦૩

************

3/3

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy