ok..I think I can got your ideas. Thanks for all of you.:-bd
Type: Posts; User: Supun Pramoda
ok..I think I can got your ideas. Thanks for all of you.:-bd
I mean when we change L2 like this:
l[0]=78;
System.out.println(l);
in that case the output is different from char array.So I want to know what's the between char array & integer...
Is the char array must override with toString method??????why the integer array doesn't match in that concept???
I think,
L1: It's default value of char(null character ('\0'))
L2: first two array element when we create it in heap.
L3: I can't explain about that..please help me.
L4 : This is the same in L2....
anyone can explain me the output of this code line by line...
class Example{
public static void main(String args[]){
char cr[]=new char[3];
int l[]=new int[3];...