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 difference between integer parseint and integer valueof?

1000


What do you mean by an interface in java?

1029


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?

1011


What is Gang of four design patterns

1051


What is string in java?

1012


What is identifier give example?

1029


In how many ways we can create threads in java?

1219


What is tcp and udp?

1015


How use .contains in java?

1172


Is intellij better than eclipse?

1088


Can a main method be declared final?

1056


What is meant by design patterns?

1033


Why does my function print none?

951


How do you reverse sort a list in java?

937


Why is the main method static?

1159