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

Can we write a class without main method in java?

896


how to write a server program and sending the mails to the server using smtp protocol please help me

2004


what are the states associated in the thread? : Java thread

998


What is string in java? String is a data type?

956


Explain the meaning of java applet.

1016


What is the default execution method in java?

1128


What is the difference between path and classpath variables?

965


Why can't we make a class private in java?

976


Explain aggregation in java?

920


What is the reason behind using constructors and destructors?

1003


what is meant by Byte code concept in Java?

1006


Why is serialization required?

913


What is mvc in java?

954


What does java stand for?

1040


What are the types of sockets in java?

1055