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

What is the purpose of static methods and variables?

1081


What is package private scope in java?

992


What is ide with example?

1049


What is continuity of a function?

1134


What is the statements?

1144


Explain about fail safe iterators in java?

1078


What is method reference in java?

1191


Where we write javascript code in html page?

1101


What is the symbol for line break?

1158


What is the maximum size of hashmap in java?

1054


What are basic data types?

1164


Discuss about garbage collector in Java.

1125


What are the two basic ways in which classes that can be run as threads may be defined?

1123


What happens when I use / and % with a negative numerator?

1077


Program to Find the second largest element in an array.

1257