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
What languages are pass by reference?
How do you know if a value is nan?
Is java call by value?
What is final keyword in java? Give an example.
What is the null?
How do I write a self declaration?
What is another word for methodology?
How do you add an element to an arraylist in java?
What is tree in java?
How can you set the applet size?
Is null == null in java?
How hashmap works in java?
What is parsing in grammar?
Can we create object of inner class in java?
What are mutable classes?