Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What does URL stand for?
Think about how we locate resources online.
What class do we use in Java to read from URLs?
Look for Java classes in the java.net package.
What does the URL class in Java represent?
It's something you might type into a browser.
True or False: BufferedReader can be used to read binary data.
Consider what kind of data BufferedReader is meant to process.
Create a Java program that takes a URL as input and retrieves the content, printing the total number of lines retrieved.
Don’t forget to handle IOException!
Imagine you have a URL that sometimes goes down. Write a Java method that tries to retrieve content, and if it fails, retries after a short delay.
Use a counter to limit the number of retries.
5 more questions in this section. Enroll free to practise them all.
Enroll free