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 is the intersection and union methods?

1076


What are locale settings?

1033


What are different types of control structures?

1032


What is an object in java and how is it created?

1103


What type of language is java?

1042


How to add menushortcut to menu item?

1041


How to set the permissions to a file in java?

1045


Why do we use bufferedreader?

1053


What is a parameter used for?

1007


How are variables stored in memory?

1118


What is the final class modifier?

1090


Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?

1035


What are identifiers in java?

1194


How do you sort an array in java?

1047


What is the basic difference between string and stringbuffer object?

1144