Nandini Bhaduri

Greenhorn
+ Follow
since Oct 23, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nandini Bhaduri

chaitanya, i just had the main method in it for testing. of course you can use it from any other class.
13 years ago
It will be like



13 years ago
Depends on what you want to do. If you are going for a even moderately sized java application I would suggest you learn Ant. It makes life easier. Its an excellent tool.
13 years ago

You could get a copy of Design Patterns: Elements of Reusable Object-Oriented Software by Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides (Gang of Four). That's the originator of Design Patterns.
13 years ago
Hi,
I have been working in this industry for a long time now. Actually I am preparing for SCEA, but as the 5 version is still not out yet - thought I would do some warm up with SCJP.

I mostly studied from K&B book and wrote many small programs on most topics using a text editor - without any help.

The exam was much easier than I expected - and the duration of 3 hours was just too much - after 2 hours I got bored and submitted my exam.

Nandini
16 years ago
In the second case two objects will be created. First one associated with the "ram" literal and then a second one which is a clone of the first. Both objects are stored on the heap but the first is immediately released again. A reference to the second one is assigned to temp.
str and temp are references to strings and not the string itself. "ram" is stored in the literal pool.
Both str and temp will be created on the stack if they are declared in a method, otherwise on the heap.
The stack is used to store the volatile environment of methods. It's allocated when the method is called and released again when the method is left. It holds the variables and methods declared in the method.

A key feature of Java is its garbage-collected heap, which takes care of freeing dynamically allocated memory that is no longer referenced. This frees the programmer from having to keep track of when to free allocated memory, thereby preventing many potential bugs and headaches.
Try with:

Dog.java

DeSerializeDog.java:

The output for SerializeDog:
before: Fido 35 and test is :modified-test and Animal test is :Modified animal test

The output for DeSerializeDog:
after: Fido 42 and test is :modified-test and Animal test is :Animal test


(added tags)
[ December 22, 2006: Message edited by: Barry Gaunt ]