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
What about main thread in java?
Differentiate storage classes on the basis of their scope?
What do you mean by boolean?
What are unchecked exceptions in java?
What is assembly used for?
Is java jre still free?
Difference between static synchronization vs. Instance synchronization?
What does exp mean in math?
Write a program to print the pattern given below
What is a class component?
What interface is extended by awt event listeners?
What is java ceil?
What is the major advantage of external iteration over internal iteration?
What is empty string literal in java?
Is string a wrapper class?