MCA MAGADH UNIVERSITY QUESTION (2014-2017) OOP with JAVA

MCA MAGADH UNIVERSITY QUESTION (2014-2017) OOP with  JAVA
MCA MAGADH UNIVERSITY QUESTION (2014-2017) OOP with  JAVA


                                                                       2014-2017
                                                                   Full marks: 80
                                                                   Time: 4 hours
                                       Candidates are required to give their answers in their
                                                           Own words as far as practicable.
                                                          The questions are of equal value.
                                                             Answers any five questions.

1. What is Java ? Discuss various features of java. How java is different from C++ ? Explain with example.

2. Explain polymorphism in java. How it is important ? Write example for the same.

3. What does an array mean? How do you create single and multidimensional array in java. What are the facilities that java utilize arrays class provide for handling arrays.

4. What are interfaces? How are interfaces created and implemented in java? How is an interface different from a class.

5. What is inheritance? How inheritance is realized in java? Illustrate with suitable example.

6. Define an exception. How is it related to an error? create a user defined exception in java.

7. (a) What is synchronization and why is it important?
    (b) Write a program to create multiple threads? the main method steps for about 10 seconds at the end of which all the thread should be terminated.

8. What do you mean by thread and multithreading? Explain how synchronization is achieved in a multithreaded program in java.

9. What is a package? How do you create a package? How does a package declaration affect a class definition?

10. Write short notes on any four of the following:
      (a) Java Language Components
      (b) Constructor
      (c) Reflection class
      (d) Memory management
      (e) Creating animation using threads

Comments

Popular posts from this blog

MCA MAGADH UNIVERSITY QUESTION (2015-2018) (Semester-iii) Database Management Systems

MCA MAGADH UNIVERSITY QUESTION (2010-2013) (Fifth Semester) Artificial Intelligence and Application

BCA MAGADH UNIVERSITY QUESTION (2011)