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...

import java.io.*;
class Demo
{
public static void main(String args[])
{
File f=new File("1234.msg");
String arr[]=f.list();
System.out.println(arr.length);
}
}

Answer Posted / sarath

so what is your question..?
the code gives compilation error... because it should throw a IOException..

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we used break and continue statement in java?

1126


Why do we use bufferedreader?

992


What is unicode used for?

1147


What do you mean by exception handling in Java?

1279


What is the longest unicode character?

1143


Is this valid in java ? Can we instantiate interface in java?

964


what are abstract functions?

1024


What is ordered map in java?

983


Explain working of call by reference function invoking.

1014


What comes to mind when someone mentions a shallow copy in java?

1105


What's the purpose of static methods and static variables?

1090


Can a final method be overloaded?

936


What is composition in java?

1282


What exactly is methodology?

914


What do you mean by append?

1055