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 literal example?

940


What is a singleton class? Give a practical example of its usage.

1097


What are recursive functions?

1051


Can we extend singleton class?

947


What is the purpose of javac exe?

1088


What is the difference between the direct buffer and non-direct buffer in java?

1025


What are advantages of exception handling in java?

1014


What are the wrapped, classes?

1047


what is meant by Garbage collection?

1092


What is ternary operator?

998


What is super keyword explain with example?

1280


What is a void in java?

1158


Explain what is encapsulation?

1078


Tell some latest versions in JAVA related areas?

984


What is anti pattern in cyber security?

1015