Explain the difference between an absolute path and a relative path. Provide an example of an absolute path to a file on a system, and then provide an example of a relative path.
What will be an ideal response?
Every Path is either absolute or relative. An absolute path is a complete path that does not need any other information to locate a file on a system. A relative path depends on other path information.?C:\Java\Chapter13\SampleFile.txt is an example of an absolute path.?A relative path depends on other path information. A simple path such as SampleFile.txt is relative. When you work with a path that contains only a filename, the file is assumed to be in the same folder as the program using it. Similarly, when you refer to a relative path such as Chapter13\SampleFile.txt (without the drive letter or the top-level Java folder), the Chapter13 folder is assumed to be a subfolder of the current directory, and SampleFile.txt is assumed to be within the folder.
You might also like to view...
If you want to move your mouse between a virtual machine running an unenlightened OS and the host OS, which of the following should you configure?
A. Mouse Release Key B. Keyboard C. Reset Check Boxes D. NUMA Spanning
ch = inFile.next().charAt();while (inFile.hasNext()){ System.out.println(ch); ch = inFile.next().charAt();}The above code is an example of a(n) ____ loop.
A. sentinel-controlled B. flag-controlled C. EOF-controlled D. counter-controlled
Which of the following is part of Visual Basic 2010?
A. Oracle Reports B. Google Reporting C. Crystal Reports D. Yahoo! Report Tools
A cookie is an important file stored on your desktop that collects keystroke information.
Answer the following statement true (T) or false (F)