Getting file size

does anyone know how can you get the file size of a particular file? lets say i need to know the file size of hello.java, what can I do? thank you!
[154 byte] By [jefflacsa] at [2007-11-26 17:15:20]
# 1
The File class has a method called "length." For details see the API documentation.
jsalonena at 2007-7-8 23:43:20 > top of Java-index,Java Essentials,Java Programming...
# 2
File f=new File(filePath);long length=f.length();
harish_srra at 2007-7-8 23:43:20 > top of Java-index,Java Essentials,Java Programming...