MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program? Note: Host URL is written in html and simple text. import java.net.*; class networking { public static void main(String[] args) throws Exception { URL obj = new URL("https://www.mcqsmentor.com/"); URLConnection obj1 = obj.openConnection(); System.out.print(obj1.getContentType()); } } |
| A. | Html |
| B. | Text |
| C. | Html/text |
| D. | Text/html |
| Answer» E. | |