Search This Blog

LAST POST -ASSIGNMENT ON COLLECTION FRAMEWORK,GARBAGE COLLECTION,POJO CLASS USE,GETTER AND SETTER

you can go for this assignment as it consist of various modules of core java best of cdac tutorials :)
consist of math class,system properties,diffrences and concepts of fundamental java

Core Java Assignment – III



1. Write a program to demonstrate the use of equals method of Object class and compare its functionality with ( = = ) operator.


2. Modify program 1 with Integer class Object.Use the override equals method of Integer with two different object wrapping same primitive int value ( like - 10).demonstrate the difference in the output from program 1.


3. Demonstrate the use of ceil(), floor(), round(), random(), abs(), max(), min() methods of Math class.


4. Write a program to invoke garbage collector and show the details of free memory before and after the garbage collection.


5. Write a program to print all System properties using system class.


6. Define a method setMyProperty(String, String) to set your own system property and use the same system property in another method.


7. Define the following collections with some values
a. ArrayList
b. HashSet
c. HashMap
d. Hashtable
Iterate through all elements of collection using Enumeration and Iterator Interface and remove an element of each collection using these Interface.


8. Define a class Employee and make Employee classes objects persistent and then read those objects to print the value on console output.

9. Write a program to take the content from user through keyboard and save that content to a file using Buffered Streams.


10. Write a program to show different properties of a file or directory using File class Object.


I am uploading some files here which are java programs and codes for beginners ,newbie,noobs and even experinced in java.

SOLUTIONS-
click for answeres of this assignment

No comments:

Post a Comment