Click here to Skip to main content
15,888,521 members
Home / Discussions / Java
   

Java

 
AnswerRe: Please Help me Pin
kid sister24-Feb-12 18:43
kid sister24-Feb-12 18:43 
QuestionA stupid question? Pin
sharkbc17-Feb-12 2:09
sharkbc17-Feb-12 2:09 
AnswerRe: A stupid question? PinPopular
BobJanova17-Feb-12 3:02
BobJanova17-Feb-12 3:02 
AnswerRe: A stupid question? Pin
TorstenH.17-Feb-12 3:11
TorstenH.17-Feb-12 3:11 
AnswerRe: A stupid question? Pin
jschell17-Feb-12 7:23
jschell17-Feb-12 7:23 
GeneralRe: A stupid question? Pin
sharkbc17-Feb-12 15:44
sharkbc17-Feb-12 15:44 
GeneralRe: A stupid question? Pin
TorstenH.19-Feb-12 19:57
TorstenH.19-Feb-12 19:57 
GeneralRe: A stupid question? Pin
jschell20-Feb-12 10:27
jschell20-Feb-12 10:27 
The real problem is that we do not know what you are actually doing.

Again the following has always been true regardless of java version for the major java vendors...

Equality compares references
The method equals() compares value (content of string.)

As I said there are ways which MIGHT present seemingly different results dependent on the specifics of what is going on. But you haven't presented the specifics.

And based ONLY on the code you posted you are comparing references for what you refer to "CODE 1". And reference equality will be equal.

So what are some possible causes for some other difference for some OTHER code?
1. You were not using a real version of java, it was some odd variant.
2. There was something odd about the way in which your database code worked.
3. There was something odd about your data
4. You misinterpreted what was happening before.
5. The real code would make it explicitly obvious why a difference was occurring.
6. The method intern() was being called somewhere (incorrectly called.)
AnswerRe: A stupid question? Pin
Nagy Vilmos21-Feb-12 0:45
professionalNagy Vilmos21-Feb-12 0:45 
QuestionRegarding video compression in java Pin
advarun15-Feb-12 22:39
advarun15-Feb-12 22:39 
AnswerRe: Regarding video compression in java Pin
Nagy Vilmos15-Feb-12 23:41
professionalNagy Vilmos15-Feb-12 23:41 
QuestionJava project Energy Consumption Calculator for data centers (Need Help) Pin
Kashifn4715-Feb-12 19:54
Kashifn4715-Feb-12 19:54 
AnswerRe: Java project Energy Consumption Calculator for data centers (Need Help) Pin
Richard MacCutchan15-Feb-12 22:33
mveRichard MacCutchan15-Feb-12 22:33 
AnswerRe: Java project Energy Consumption Calculator for data centers (Need Help) Pin
TorstenH.16-Feb-12 4:07
TorstenH.16-Feb-12 4:07 
GeneralGet the free java project om monster hub Pin
ajinkyachavan8915-Feb-12 17:13
ajinkyachavan8915-Feb-12 17:13 
QuestionGet the free java project with Pin
ajinkyachavan8915-Feb-12 17:12
ajinkyachavan8915-Feb-12 17:12 
QuestionGet the java project with source code and documentation Pin
ajinkyachavan8915-Feb-12 17:09
ajinkyachavan8915-Feb-12 17:09 
Questionjava code for image segmentation Pin
sajan_manohari14-Feb-12 21:50
sajan_manohari14-Feb-12 21:50 
AnswerRe: java code for image segmentation Pin
Nagy Vilmos14-Feb-12 22:08
professionalNagy Vilmos14-Feb-12 22:08 
AnswerRe: java code for image segmentation Pin
BobJanova15-Feb-12 1:35
BobJanova15-Feb-12 1:35 
Questioniterator problem Pin
prithaa14-Feb-12 6:14
prithaa14-Feb-12 6:14 
AnswerRe: iterator problem Pin
TorstenH.14-Feb-12 19:43
TorstenH.14-Feb-12 19:43 
GeneralRe: iterator problem Pin
prithaa15-Feb-12 1:09
prithaa15-Feb-12 1:09 
GeneralRe: iterator problem Pin
TorstenH.15-Feb-12 1:18
TorstenH.15-Feb-12 1:18 
GeneralRe: iterator problem Pin
prithaa15-Feb-12 1:25
prithaa15-Feb-12 1:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.