Sie sind auf Seite 1von 2

INDEX

CSE-311: Advance Technologies (Pr.)


S. No.

AIM

1.

Write a JAVA program to print Hello World.

2.

Write a Java program to show addition, subtraction,


multiplication and division of two numbers [num1=90,num2=10].
Using if statement write a program to check whether one number
is greater than, less than or equal to another number.
Using for loop write counting from 1 to 100 in ascending order.

3.
4.
5.

9.

Write a program to calculate area and perimeter (circumference)


of circle with radius 12.
Write a program to print default value for each primitive data
type.
Using command line argument, write a program to take input
from user for example his/her name and print Hello <his/her
name>.
Using arrays write a program to store number of days in each
month, then print April has 30 days.
Write a program to show average of 10 floating point numbers.

10.

Using 2D array write a program to show desired output.

11.

Using ternary operator write a program to show the absolute


value of -10.
Write a program to show which months fall in winter season,
spring season, summer season, and autumn season.
Using loop write a program to print 1 to 10, in English words. [i.e
One , Two Ten]
Using for loop write a program to show desired output.

6.
7.

8.

12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.

23.

Write a Java class to create a box having width, height and depth,
using java objects create two boxes of different dimensions and
calculate their volume.
Use constructors to create two boxes and calculate their volume.
Give an example of Method overloading in java. Constructor
overloading in java
Write an example to show use of this keyword. With variables.
With methods. With constructors
Write a program to demonstrate a. Call by value. Call by
reference
Using recursion write a program to show factorial of a number.
Write a program to show the difference between various access
modifiers i.e public, private, protected and default.
Write a program to show:. Difference between static variable and
not static variable. b. Difference between static method and not
static method. c. Significance of static block.
Create three arrays of different dimensions and write a program to

DATE

SIGNATURE

24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.

36.

37.
38.

display their size.


Can we define a class inside a class in java, if yes show.
Write a program to store your name twice in two strings i.e one in
upper case and another in lower case, check weather both strings
are equal, find the length of string and character at index 3.
Give an example of inheritance in Java show a. Method
inheritance. Variable inheritance.
Write an example to show use of super keyword
a. with variables. with methods. with constructors
Give an example ofa. Method overloading in javab. Can we do
Constructor overloading in javac. Method Overriding in java.
Demonstrate use of final a. With variables. With methods in Java.
Can we declare a method without body in Java, if yes how? What
are abstract classes.
How we create package in java and how do we import them, give
an example.
Give an example to show difference between abstract class and
interface.
Write a program to take two input numbers from user using
scanner class and display their modulus.
Generate an editor screen containing menus, dialog boxes etc.
Create an applet with a text field and three buttons. When you
press each button, make some different text appear in the text
field.
Create an applet with a button and a text field. Write a
handleEvent( ) so that if the button has the focus, characters typed
into it will appear in the text field.
Java Networking Java Sockets and RMI.
Using JAVA develop a front end for a contact management
program using a flat file database. DB needs to be distributed or
centralized.

Das könnte Ihnen auch gefallen