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

What will happen to the exception object after exception handling?

996


Is arraylist zero based?

1066


Why is it called a string?

1011


Why runnable interface is used in java?

1136


Is array size fixed in java?

975


What is the meaning of immutable regarding string?

968


why java uses class level type casting ?

2661


How do you write a scanner class in java?

1015


Convert a BST into a DLL and DLL to BST in place.

1116


What is bytecode verifier?

940


What does you mean in math?

1087


How do listeners work?

1044


What causes memory leak in java?

936


explain what is transient variable in java?

1144


What is a superclass?

1348