Because, == checks for address and .equals checks for value
On Dec 30, 2009, at 3:22 AM, Sumant wrote:
> Why I get True for Equals and false for == ? here is the code below...
>
>
>
> public class Test12 {
>
>
> public static void main(String[] args) {
> String str1=new String("abc
Please refer to JLS § 3.10.5 or a popular description at
http://www.janeg.ca/scjp/lang/strLiteral.html
== returns false 'cause these are different objects: you explicitly
create str1.
2009/12/30 Sumant :
> Why I get True for Equals and false for == ? here is the code below...
>
>
>
> public class
Why I get True for Equals and false for == ? here is the code below...
public class Test12 {
public static void main(String[] args) {
String str1=new String("abc");
String str2="abc";
System.out.println(str1.equals(str2)); // Returns True
System.out.println(
Hi Peeter,
From the command line, try to "DIR C:\PROGRA~1" or "DIR C:\PROGRA~2".
One of them (let's say "DIR C:\PROGRA~2") behaves like "DIR C:\Program
Files (x86)". In this case:
set JAVA_HOME=C:\PRGRA~2
It is a real mess the default "Program Files" value when installing
programs under W
Hi,
I have downloaded Java JDK 1.6 14 as my development kit for the J2EE)
Programming (with Passion!) Basics course. My home directory for the JDK is
under C:\Program Files (x86)\java\jdk1.6.0_14.
I ran into the trouble of doing home work
LAB-4010: Web Application Security Threats a
When I start webgoat.bat file I get the following message ? I use
jdk1.6.0_12. I don't understand what exactly do I need to upgrade ?
I M P O R T A N T U P G R A D E N O T I C E
..
WebGoat 3.5 uses Tomcat 5.5.4 as the def
Hi everybody!
Is enybody saw the code of WebGoat, is it given to as like java source code, or
like executable java class?
Because they not give as posibility to see java code in window, that option is
grey. They just tickled our curiosity.
Regards,
biljana
--~--~-~--~~-