Java Programs
Java Programs
-26
Aim: Write a program to create any GUI using swing API in Java.
Code:
Output:
Program No. -27
Aim: Write a program to create Panel using swing API in Java.
Code:
Output:
Program No. -29
Aim: Write a program to demonstrate the behaviour of Generic
Method in Java.
Code:
Output:
Program No. -28
Aim: Write a program to demonstrate the behaviour of Generic Class
in Java.
Code:
Output:
Program No. -30
Aim: Write a program to demonstrate the behaviour of List interface
of collection framework in Java.
Code:
OUTPUT:
Program No. -31
Aim: Write a program to demonstrate the behaviour of Set interface
of collection framework in Java.
Code:
Output:
Program No. -32
Aim: Write a program to demonstrate the behaviour of Queue
interface of collection framework in Java.
Code:
Output:
Program No. -33
Aim: Write a program to demonstrate the behaviour of Map interface
of collection framework in Java.
Code:
Output:
Program No. -34
Aim: Write a program to demonstrate the behaviour of Sorted List
interface of collection framework in Java.
Code:
Output:
Program No. -35
Aim: Write a program to demonstrate the behaviour of unbounded
wildcard in Java.
Code:
Output:
Program No. -36
Aim: Write a program to demonstrate the behaviour of upper
bounded wildcard in Java.
Code:
Output:
Program No. -37
Aim: Write a program to demonstrate the behaviour of lower
bounded wildcard in Java.
Code:
Output: