This download link is referred from the post: JNTUA MCA 2nd Sem last 10 year 2010-2020 Previous Question Papers (JNTU Anantapur)
FirstRanker.com
Firstranker's choice
Code: 17F00204
--- Content provided by FirstRanker.com ---
FirstRanker.comMCA II Semester Regular & Supplementary Examinations May/June 2019
JAVA PROGRAMMING
(For students admitted in 2017 & 2018 only)
Time: 3 hours Max. Marks: 60
--- Content provided by FirstRanker.com ---
Answer all the questions
- Illustrate the use of different operators used in java with an example.
Write a java program that accepts four integers from the user and prints equal if all four are equal, and not equal otherwise.
OR
Explain the important features of java. - Demonstrate the use of while and do-while statements for displaying all the prime numbers up to n.
- Write a java program to create a two-dimensional array of order m x m and assign the elements of array A[][] such that A[i][j] is true if i and j are prime and have no common factors, otherwise A[i][j] becomes false.
OR
Explain various access specifiers supported by java with an example. - Write a java program to perform the following functions using classes, objects, constructors and destructors wherever necessary:
--- Content provided by FirstRanker.com ---
(i) Read 5 subjects marks of 5 students.
(ii) Calculate the total and print the result on the monitor. - Define an interface named IntStack with two operations Push() and Pop(). Define a class called stack that implements IntStack. Write a java program to reverse the array elements using the above class.
Distinguish between method overloading and method overriding with an example.
OR--- Content provided by FirstRanker.com ---
Write the steps for creating and accessing packages in java. - What are the various types of exceptions available in java? Demonstrate the use of exception handling mechanism used in java with an example program.
- Write an applet application which will display colours in list box and a scrolling banner which scrolls from left to right within a browser. When user selects any colour from the list, it should change the colour of scrolling banner.
OR
Explain thread life cycle and thread creation in java. - Write a java program to concatenate two given files. Give names of files using command line arguments.
- Write a program to create a frame for a simple arithmetic calculator using swing components and layout managers.
Write a program to handle keyboard events.
OR
What is the significance of layout managers? Discuss briefly various layout managers. - Write an example java program that displays four push buttons and a text field. Each button displays the flag of 2 countries. When any button is pressed, the name of that country is displayed in the text field.
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
This download link is referred from the post: JNTUA MCA 2nd Sem last 10 year 2010-2020 Previous Question Papers (JNTU Anantapur)
--- Content provided by FirstRanker.com ---