Q. Which of these is a correct way to create a File object?
Solution:
The correct syntax uses double quotes: File f = new File(‘path’); for a file path.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
The correct syntax uses double quotes: File f = new File(‘path’); for a file path.
Strengthen Your Practice with our comprehensive question bank.