i just can;t get my head out of this.Will **createNewFile** also creates new directory as mentioned in the path . And after some research i found **NO**. if that is what you wished for it is correct but if no check this link out http://stackoverflow.com/questions/6666303/javas-createnewfile-will-it-also-create-directories