Problem 3
Write a program to display all the system properties.
Problem 6
List any five methods available in Math package. Explain its uses.
Problem 7
Write a program to find the difference between two dates.
Problem 9
Write short notes on String/Tokenizer and Properties class.
Problem 10
Write short notes on: ( a) Object class ( b) Random class
Problem 12
What will be the output of the following program? class test { public static void main(String args[]) { System.out.println(Math.floor(2.7)); System.out.println(Math.ceil(2.7)); System.out.println(Math.round(2.7)); System.out.println(Math.round(2.3)); System.out.println(Math.rint(2.7)); System.out.println(Math.ceil(-2.2)); System.out.println(Math.floor(-2.2)); System.out.println(Math.round(-2.7)); System.out.println(Math.max(2, 3)); System.out.println(Math.max(-2, -3)); System.out.println(Math.min(2, 3)); System.out.println(Math.min(-2, -3)); } }
Problem 13
Which class is the root class for all the Java class? Justify.
Problem 15
Explain the terms Observable class and Observable interface with suitable example.
Problem 17
Why do we use clone method in Java? Explain with example.
Problem 18
Why do we use Process class?