Gadgets

B.tech CSIT Lab programs

2.      Write a java program that displays the roots of a quadratic equation ax2 +bx+c=0. Calculate the discriminate D and basing on the value of D, describe the nature of roots.
3.      Write java program to display the Fibonacci sequence.
5.      Write a java program to sort given list of numbers.
6.      Write a java program to search for an element in a given list of elements (linear search).
7.      Write a java program to search for an element in a given list of elements (binary search).
8.      Write a java program to determine the addition of two matrices.
9.      Write a java program to determine the multiplication of two matrices.
10. Write a java program to sort an array of string.
12. Write a java program for the following
·        Example for call by value
·        Example for call by reference
13. Write a java program to give the example for “this” operator. And also use “this” keyword as return statement.
15. Write a java program to given the example for “super” keyword.
16. Write a java program that illustrates multi-level inheritance.
17. Write a java program demonstrating the difference between method overloading and method overriding.
18. Write a java program demonstrating the difference between method overloading and constructor overriding.
20. Write a java program for example of try-catch block. In this check whether the given array size is negative or not.
21. Write a java program to illustrate sub class exception precedence over base class.
22. Write a java program for creation of user defined exception.





1 comment: