abhas Active member
| Subject: Java bluej ICSE class x output program | see this | Thu Feb 05, 2009 10:03 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 11:14 pm | |
| thanx abhas |
|
Anu..i luv icse...:) Active member
| Subject: Re: Java bluej ICSE class x output program | see this | Fri Feb 06, 2009 12:46 pm | |
| yes...u r true |
|
Vaibhav Garg Active member
| Subject: Re: Java bluej ICSE class x output program | see this | Mon Feb 09, 2009 7:53 pm | |
| ya we kno this... null is the default value for string..... |
|
eldhojose Active member
| Subject: thanks Thu Feb 19, 2009 5:24 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 5:25 pm | |
| - eldhojose wrote:
- ambili wrote:
- thanx abhas
opps gret discovery
null is off course the default value |
|
Sponsored content
| Subject: Re: Java bluej ICSE class x output program | see this | | |
| |
|