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 / sri

this code gives Nullpointer exception

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can java object be locked down for exclusive use by a given thread? : Java thread

1084


What is the difference between the paint() and repaint() methods in java programming?

1175


What is a variable in java?

1115


Java is Pass by Value or Pass by Reference?

1036


give an example for encapsulation?

1037


What do you mean by global variable?

940


How to create a thread in java?

1128


Where is java located?

1038


When super keyword is used?

1007


What is abstract class? Explain

1035


explain autoboxing in java?

989


What is a default constructor and also define copy contrucyor?

1097


How java is similar to c?

1036


Explain when classnotfoundexception will be raised ?

1032


What is the use of static methods?

1031