Download JNTUH MCA 3rd Sem R15 2022 March-April 823AD Marchapril Java Programming Question Paper

Download JNTUH (Jawaharlal nehru technological university) MCA (Master of Computer Applications) 3rd Sem (Third Semester) Regulation-R15 2022 March-April 823AD Marchapril Java Programming Previous Question Paper


R15

Code No: 823AD















JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

MCA III Semester Examinations, March/April - 2022

JAVA PROGRAMMING

Time: 3 Hours















Max.Marks:75

Answer any five questions

All questions carry equal marks

- - -



1.a)

What is a Constructor? How to invoke a constructor in JAVA? Explain.

b)

Briefly describe about parameter passing techniques in Java.





[8+7]



2.a)

Discuss various primitive data types in Java.

b)

Write a java program to find maximum of three numbers using ternary operator. [7+8]



3.a)

Explain the use of `super' and `final' key words in java.

b)

Illustrate the importance of Abstract classes with a JAVA program.



[7+8]



4.

Write a detail note on interfaces and packages in java with examples.



[15]


5.a)

Explain the purpose of BufferedWriter classes in Java with an example.

b)

Write a Java program that reads from the `text' file using File Reader.



[7+8]



6.a)

Briefly explain about the following
i) Hash Table ii) String Tokenizer

b)

Write a Java program to accepts a file name as command line argument and finds the
length of the longest line in the file and displays an error message if the file does not exist.

























[7+8]

7.a)

Demonstrate nested try statements and finally statements.

b)

Explain thread synchronization with respect to multithreading.





[7+8]


8.a)

Describe the event handling mechanism in java with an example.

b)

Write an applet program that will take an input from the user to calculate the average of
two integers.

















[7+8]



---oo0oo---






This post was last modified on 17 March 2023