0% found this document useful (0 votes)
5 views2 pages

Java Lab External Prints

The document outlines a series of Java programming tasks, including displaying default values of primitive data types, solving quadratic equations, generating Fibonacci sequences, sorting and searching lists, performing matrix operations, and demonstrating various object-oriented programming concepts such as inheritance, exception handling, and threading. Each task requires the implementation of specific Java programs to illustrate the concepts effectively. Additionally, the document covers GUI elements and file handling in Java.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

Java Lab External Prints

The document outlines a series of Java programming tasks, including displaying default values of primitive data types, solving quadratic equations, generating Fibonacci sequences, sorting and searching lists, performing matrix operations, and demonstrating various object-oriented programming concepts such as inheritance, exception handling, and threading. Each task requires the implementation of specific Java programs to illustrate the concepts effectively. Additionally, the document covers GUI elements and file handling in Java.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1) a) Write a JAVA Program to display default value of all primitive datatypes of java ?

b) Write a JAVA Program that displays roots of a quadratic euation ax2 +bx + c = 0.Calculate descriminant D. Based on D describe nature of
roots ?

2) a) Write a JAVA Program to display Fibonacci sequence ?


b) Write a JAVA Program to give example for command line arguments ?

3) a) Write a JAVA Program to sort given list of numbers ?


b) Write a JAVA Program to search a given list using Linear search ?

4) a) Write a JAVA Program to search a given list using Binary search ?


b) Write a JAVA Program to sort the given strings ?

5) Write a JAVA Program to determine addition of two matrices ?

6) Write a JAVA Program to determine multiplication of two matrices ?

7) a) Write a JAVA Program to check the given string is palindrome or not ?


b) Write a JAVA Program to explain i) Call by value ii)Call by reference

8) a) Write a JAVA Program to illustrate ‘this’ operator. Also use ‘this’ keyword as return statement ?
b) Write a JAVA Program to illustrate staic variables, methods and blocks ?

9) a) Write a JAVA Program to illustrate ‘super’ keyword ?


b) Write a JAVA Program to illustrate simple inheritance ?

10) a) Write a JAVA Program to illustrate multi-level inheritance ?


b) Write a JAVA Program demonstrating difference between Method overloading & Method overriding ?

11) a) Write a JAVA Program to give difference between Method overloading & Constructor overloading ?
b) Write a JAVA Program to illustrate Exception handling mechanism ?

12) a)Write a JAVA Program to explain Exception handling using try & catch. In this check whether the given array size is negative or not ?
b) Write a JAVA Program to give sub class exception precedence over base class ?

13) a) Write a JAVA Program to illustrate User defined Exception ?


b) Write a JAVA Program to illustrate creation of thread using runnable interface ?

14) Write a JAVA Program to create a class MyThread.in this class constructor, call the base class constructor using
super and start the thread. Observe main thread and child thread are running concurrently or not ?

15) Write a JAVA Program to illustrate multiple inheritance using interfaces ?

16) Write a JAVA Program to create a package p1 and implement in ex1 class ?

17) Write a JAVA Program to create a package Mypack and import in circle class ?
18) Write a JAVA Program to give example for abstract class ?

19) a)Write a JAVA Program to explain lifecycle of an applet ?


b)Write a JAVA Program to create dialogbox and menu ?
c)Write a JAVA Program to create grid layout control ?

20) Write a JAVA Program to create border layout control ?z

21) Write a JAVA Program to create padding layout control ?

22) Write a JAVA Program that describes X and Y positions of cursor using mouse ?

23) Write a JAVA Program to count the no.of characters,words,lines ina text file ?

You might also like