Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

is this possible to create an array of 0 length?
if so how? if not so why?
coz we have an array in main() likw this
"static void main(String [] s) then what it signifies?

Answer Posted / sushila

yes we can create array with 0 length.

public class A
{
static int b[];
public static void main(String args[])
{
System.out.println("-----------------");
System.out.println(b);
System.out.println("-----------------");
}
}

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 8 data types in java?

986


Explain about static nested classes in java?

1058


Why is core java important?

1029


what are the methods in object?

1142


Can private class be extended java?

1012


What are keywords in java?

998


Differentiate between the constructors and methods in java?

937


What is arrays aslist in java?

944


How does linkedlist work in java?

915


What is function and its uses?

1107


EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.

9202


What is a treeset class?

1000


How do weakhashmap works?

1145


What do you know about the garbate collector?

1012


What is the difference between member variables initialization and assignment in a constructor?

1250