Program to find largest-smallest of n numbers in java


Answer all the questions.

1) Differentiate between the followings with examples

(i) Applet and application program

(ii) Thread and process

(iii) Final and finalize

(iv) Method Overloading and overriding a method       

2) Answer the following questions.                               

(i) Why do we use interfaces in Java? Describe with examples.

(ii) What happens if an abstract modifier is applied to class? Describe.

(iii) When do we use PageInt ()? Describe with the example.

(iv) How do you define package in Java? How do you prevent a class from being accessed from one package to another package? List some significant packages.

(v) What is the aim of text field? List and describe its construction and significant methods.   

3) Define following terms and their purpose.                       

(i) Panel

(ii) Frame

(iii) Java is distributed

(iv) Java is robust

(v) Java is interpreted

4) Write following Program, run and show its results.                   

(i) Write a program which let the user enter text from text field and then append it to the text areas.

(ii) Write the program in Java to find largest and smallest of n numbers stored in array, where n is a positive number.

(iii) Write the recursive program in Java for the greatest common divisor (GCD). Given two positive integers, GCD is the largest integer which divides the both.

(iv) Write the program which accepts name of the file as command line and displays its content.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Program to find largest-smallest of n numbers in java
Reference No:- TGS02292

Expected delivery within 24 Hours