Win a copy of Fixing your Scrum this week in the Agile forum!

S. Palanigounder

Ranch Hand
+ Follow
since Apr 03, 2003
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 S. Palanigounder

TOGAF is a higher level architecture framework. It is why most Java developers/architects do not know it.

http://www.opengroup.org/bookstore/catalog/g091.htm
Ulises, Can you provide the override implementation for hashCode and equals that works?
12 years ago

Michael Angstadt wrote:

S. Palanigounder wrote:The default equals method uses the bit-wise comparison.


No it doesn't...it compares the reference values for equality, as in:



What is the difference between "==" operator and "equals" method?

For example, String a=”12”; String b=”12”; String c= new String(“12”); They all have same content. But are they "==" or "equals"?
12 years ago
Michael,

If you do not overwrite the equals method, which means using the default equals method, your code works fine.
The default equals method uses the bit-wise comparison.
12 years ago
If hashCode is overwritten correctly, nothing will happen. The object can be the correct key used in HashMap.
12 years ago
When hashCode() is override, but not equals(), what will happen when object is used as the key in HashMap?
12 years ago

In response to the staggering numbers of American workers who have lost their jobs

AFL-CIO Community Services and the AFL-CIO community affiliate group, Working America have

created a national web site to help unemployed workers

UNEMPLOYMENTLIFELINE.COM: http://www.unemploymentlifeline.com/

People can enter their ZIP code at the site and see a listing of available resources

in their area, such as where to go for unemployment insurance, nutritional assistance,

heating subsidies, credit counseling, job training programs and much more.

This site also allows unemployed workers to talk to others who are in similar situations and gives

them a voice with thousands of others who have joined Working America

Share this site with your members, community and family

For more information call your local AFL-CIO Community Services staff or the AFL-CIO Community Services Regional Director, Armando Olivas at 213-387-1974 ext. 17

12 years ago

ArrayList<int> al1 = new ArrayList<int>();
ArrayList<Integer> al2 = new ArrayList<Integer>();

Any difference between them?
12 years ago

Ulf Dittmer wrote:Do you you have an opinion on that?



For the people originally from India, it might be an OK deal. Otherwise, it would be hard.
12 years ago