Exam Details

Subject java programming
Paper
Exam / Course m.c.a.science
Department
Organization solapur university
Position
Exam Date November, 2017
City, State maharashtra, solapur


Question Paper

MCA. (Semester III) (CBCS) Examination Oct/Nov-2017
Science
JAVA PROGRAMMING
Day Date: Saturday, 18-11-2017 Max. Marks: 70
Time: 02.30 PM to 05.00 PM
Instruction: Q.NO.1 and 2 are compulsory.
Attempt any 3 questions from Q.No3 to Q.No.7.
Figure to the right indicates full marks.
Q.1 Choose the Correct Alternatives 10
Which of the following is correct array declaration?
Int arr[ new int[5] Int[ arr new int[5]
Both a and b None of these
is reserved keyword in Java.
Abstract Extends
Package All of these
Variables declared in a class are called
Shared variable Local variable
Instance variable Global variable
The method is automatically invoked during garbage
collection.
Destructor Terminate
Finalize Destroy
Which of the following is correct way of inheriting class A by class
Class B class A
Class B inherits A
Class B extends A
Class B extends class A
Which of the following is correct about interfaces?
Methods declared in interfaces are implicitly private
Variables declared in interfaces are implicitly public, static, and
final
An interface contains any number of methods definitions
The keyword implements indicate that an interface inherits from
another.
method of class String is used to obtain length of String
object.
Count Size
Capacity Length
Which of the keyword is used to manually throw an exception?
Thrown Finally
Throw None of these
Page 2 of 2
SLR-SM-24
method in Thread class is used to check whether a thread
is still running.
isAlive Join
isRunning Alive
10) Which of these methods are used to register a keyboard event
listener?
KeyListener Add KeyEventListener
AddKeyListener EventKeyboardListener
Write whether true or false. 04
By tecode is platform independent.
Super keyword used to call subclass constructor.
Abstract class contains only abstract methods.
Final keyword is used to synchronize between different threads.
Q.2 Write short notes in the following: 08
Synchronization and its importance
Use of static and final keyword.
Answer the following. 06
Differentiate between a constructor and a method
Give differences between applets and applications.
Q.3 Answer the following. 14
Explain the different methods supported in Object class with example.
Write a Java program to display the message on the applet wherever
mouse click occurs.
Q.4 Answer the following. 14
Write a program to copy characters from one into another file.
Explain the concept of overriding with example.
Q.5 Answer the following. 14
What is Thread? Explain different Thread methods.
Explain about AWT event hierarchy.
Q.6 Answer the following. 14
What are wrapper classes? Why do we need wrapper classes?
What are the steps in the JDBC connection? Explain in detail.
Q.7 Answer the following. 14
Describe the various forms of implementing interface. Explain in detail.
What is Layout Manager? Explain the different Layout Managers.


Subjects

  • .net
  • artificial intelligence
  • computer communication network
  • computer graphics
  • computer oriented statistics
  • data mining and warehouse
  • data structures
  • database management system
  • digital circuits and microprocessors
  • digital image processing
  • discrete mathematical structures
  • distributed operating system
  • finite automata
  • introduction to computers
  • java programming
  • management
  • mobile computing
  • network security
  • numerical analysis
  • object oriented programming using c++
  • opeartions research
  • operating system
  • pattern recognition mobile computing
  • programming using - c
  • programming with php
  • software engineering
  • system software
  • uml
  • web design techniques
  • web technology