.getByte() on different strings
- From: "Matko" <mklaic@xxxxxx>
- Date: Fri, 8 Apr 2011 23:22:29 +0200
Hi, would you be so kind to koment on follwing code. I can't figure out
why are output values of this code different.
CODE:
public static void main(String[] args) {
System.out.println("abc".getBytes());
String abc = "abc";
System.out.println(abc.getBytes());
String d = new String("abc");
System.out.println(d.getBytes());
}
OUTPUT:
[B@42e816
[B@9304b1
[B@190d11
Tnx!
Matko
.
- Follow-Ups:
- Re: .getByte() on different strings
- From: Raghu V. Hudli
- Re: .getByte() on different strings
- Next by Date: Re: .getByte() on different strings
- Next by thread: Re: .getByte() on different strings
- Index(es):