NALANDA OPEN UNIVERSITY QUESTION, 2016, M.C.A, Part-II, Paper-XIX (Object Oriented Technologies and Java Programming)
NALANDA OPEN UNIVERSITY QUESTION, 2016, M.C.A, Part-II, Paper-XIX (Object Oriented Technologies and Java Programming)
2016
Time: 3 hours
Full Marks: 80
Answer any Five questions. All questions carry equal marks.
1. Discuss the important features of Java. Bring out the difference between the string and stringbuffer classes in java.
2. Explain the concept of inheritance. Give a suitable example by declaring a class and showing two levels of inherited classes with the methods of each.
3. There are some classes that reside in a public package called mypackage. Give three ways in which these can be accessed int the default unnamed package. If one of the classes in mypackage has the same name as a class in the default package, how can it be referred to in the default package?
4. What are the steps involved in creating a distributed application using Remote Method Invocation? What is polymorphism? Write a program to illustrate late binding in java.
5. Explain the concept of nested classes in java with examples? Write a java program that finds the areas of a circle.
6. What are the conditions necessary for a class to be serializable? Explain with examples. When is the " this" keyword used and why?
7. Explain the concept of abstract classes and differentiate it with interface. Define StreamTokenizer with an example.
8. Explain Constructor overloading with example. Write a java program to read a text file and output the number of occurrences of the sequences of letters "the " in it.
9. What are java controls and container? Write an applet that displays three labels and four non-exclusive checkboxes on the screen.
10. Construct a programming problem where the switch statement cannot be used for taking decisions. Now Write a java program to solve the problem. Explain how to compile and run a Java Servlet.
Comments
Post a Comment