What is the difference between relative and absolute paths? How would you reference the file input.txt, if your Java program was in the directory code? project/ input/ input.txt code/ FileReader.java FileReader.class README.md Edit View Insert Format Tools Table 12pt Paragraph B I U A \textless\textless T² \textless\textless
Added by Gonzalo C.
Close
Step 1
They specify the location of a file or directory relative to the current location. Absolute paths, on the other hand, specify the complete path from the root directory to the file or directory. In this case, if the Java program is in the directory Show more…
Show all steps
Your feedback will help us improve your experience
Liliane Martins and 61 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
what is the difference between file and directory
Rashmi P.
In Visual Studio, if you do not specify the full path of a file, what directory is used? a. C:\ b. the project directory c. C:\App_Data d. bin\Debug e. C:\WorkDirectory
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD