abhas Active member


 | Subject: Java bluej ICSE class x output program | see this | Thu Feb 05, 2009 8:33 pm | |
| class Str { public static void main(String args[]) { String a[]=new String[1]; System.out.println(a[0]); } } ====================================================== remember the output of this program is:- null
if u run this prg in bluej then u may also get a square box (try it urself to confm) but in exam write the ans as null if it was an int type array then default value is 0 so output will be 0 for bolean it will be false  |
|
ambili Active member


 | Subject: Re: Java bluej ICSE class x output program | see this | Thu Feb 05, 2009 9:44 pm | |
| thanx abhas  |
|
Anu..i luv icse...:) Active member


 | Subject: Re: Java bluej ICSE class x output program | see this | Fri Feb 06, 2009 11:16 am | |
| yes...u r true  |
|
Vaibhav Garg Active member

 | Subject: Re: Java bluej ICSE class x output program | see this | Mon Feb 09, 2009 6:23 pm | |
| ya we kno this... null is the default value for string..... |
|
eldhojose Active member

 | Subject: thanks Thu Feb 19, 2009 3:54 pm | |
| | ambili wrote: | thanx abhas  | opps gret discovery  |
|
eldhojose Active member

 | Subject: Re: Java bluej ICSE class x output program | see this | Thu Feb 19, 2009 3:55 pm | |
| | eldhojose wrote: | | ambili wrote: | thanx abhas  | opps gret discovery
 | null is off course the default value |
|