0% found this document useful (0 votes)
11 views

JAVA QUESTIONS

Uploaded by

asha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

JAVA QUESTIONS

Uploaded by

asha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1) A) Write a JAVA program to display default value of all primitive data type of JAVA

B) Write a JAVA program using String Buffer to delete, remove character.


C) Write a JAVA program to implement class mechanism. – Create a class, methods andinvoke them
inside main method.

2) A) Write a java program that display the roots of a quadratic equation ax2+bx=0. Calculatethe
discriminate D and basing on value of D, describe the nature of root.
B) Write a JAVA program to sort for an element in a given list of elements using bubble sort.
C) Write a java program for abstract class to find areas of different shapes.

3) A) Write a JAVA program to search for an element in a given list of elements using binarysearch
mechanism.
B) Write a JAVA program implement method overloading.
C) Write a JAVA program to implement Single Inheritance

4) A) Write a JAVA program to implement constructor overloading.


B) Write a JAVA program to implement multi level Inheritance
C) Write a java program that display the roots of a quadratic equation ax2+bx=0. Calculate the
discriminate D and basing on value of D, describe the nature of root.

5) A) Write a JAVA program to implement Interface. What kind of Inheritance can be achieved?
B) Write a JAVA program to implement constructor.
C) Write a JAVA program give example for “super” keyword.

6) A) Write a JAVA program that describes exception handling mechanism.


B) Write a JAVA program to sort for an element in a given list of elements using bubble sort.
C) Write a JAVA program for creation of Java Built-in Exceptions

7) A) Write a JAVA program that creates threads by extending Thread class .First thread display“Good
Morning “every 1 sec, the second thread displays “Hello “every 2 seconds and the third display
“Welcome” every 3 seconds ,(Repeat the same by implementing Runnable)
B) Write a JAVA program to display default value of all primitive data type of JAVA
C) Write a JAVA program Illustrating Multiple catch clauses

8) A) Write a JAVA program using String Buffer to delete, remove character.


B) Write a JAVA program implement method overloading.
C) Write a JAVA program for creation of Java Built-in Exceptions

9) A) Write a java program that display the roots of a quadratic equation ax2+bx=0. Calculatethe
discriminate D and basing on value of D, describe the nature of root.
B) Write a JAVA program to implement constructor overloading.
C) Write a JAVA program to implement Interface. What kind of Inheritance can be achieved?

You might also like