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 about main thread in java?

1170


Differentiate storage classes on the basis of their scope?

1230


What do you mean by boolean?

1114


What are unchecked exceptions in java?

1085


What is assembly used for?

1061


Is java jre still free?

1005


Difference between static synchronization vs. Instance synchronization?

1172


What does exp mean in math?

1044


Write a program to print the pattern given below

990


What is a class component?

1220


What interface is extended by awt event listeners?

1101


What is java ceil?

1078


What is the major advantage of external iteration over internal iteration?

1151


What is empty string literal in java?

1106


Is string a wrapper class?

1060