File f=new File("c:/'.'"); // I know about file class just didn't understand what kind of file "c:/'.'" is.

File strRoot[]=f.listRoots();

That refers to the C-drive in your computer.

thanks but what does '.' mean

The dot refers to the current working directory.