Given the following statement that creates a URL object, which statement can you use to open a stream to read data from that URL? URL url = new URL("http://www.murach.com/new_books.rss");

Given the following statement that creates a URL object, which statement can you use to open a stream to read data from that URL?
URL url = new URL("http://www.murach.com/new_books.rss");










a. InputStream in = url.openURL();
b. InputStream in = url.openStream();
c. InputStream in = url.openFileInput();
d. InputStream in = url.openFileOutput();















Answer: B


Android

Learn More Multiple Choice Question :