Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What does the File class represent?
Think about what a file is in terms of Java.
What is the purpose of InputStream in Java?
Relate it to reading from a source.
What class in Java represents file and directory pathnames?
What is the base class for file handling?
Buffered input streams enhance performance by:
Think about data transmission efficiency.
Write a Java program using File and BufferedWriter to create a text file and write 'Hello World!' into it. Ensure to handle exceptions appropriately.
Consider file paths and exception handling!
Explain how you would read the content from a file using BufferedReader and also discuss the importance of handling EOFException.
Think about what happens when you reach the end of a file.
4 more questions in this section. Enroll free to practise them all.
Enroll free