Java Networking and AWT Graphics

Quiz covering Java networking classes (URL, URLEncoder, URLConnection) and AWT graphics methods

5 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which class is used to create an object from a full web address in networking in Java?

  1. URLConnection Class
  2. URL(String)
  3. URL Class
  4. InetAddress Class
  5. DatagramPacket Class
Question 2 Multiple Choice (Single Answer)

Which class takes a string of text and turns it into the MIME format in networking in Java?

  1. InetAddress Class
  2. URL Class
  3. URLEncoder Class
  4. DatagramPacket Class
  5. DatagramSocket Class
Question 3 Multiple Choice (Single Answer)

Which class is used to create and control a connection to a platform and firewall specific location in networking in Java?

  1. URL(String)
  2. URL Class
  3. URLConnection Class
  4. ContentHandler Class
  5. InetAddress Class
Question 4 Multiple Choice (Single Answer)

Which class is used to examine suspended thread's stack frame by the debugger in networking in Java?

  1. RemoteStackVariable Class
  2. RemoteStackFrame Class
  3. ThreadDeathEvent()
  4. QuiteEvent()
  5. InetAddress Class
Question 5 Multiple Choice (Single Answer)

Which method is used for clear the screen and calls the paint() method?

  1. paint()
  2. update()
  3. repaint()
  4. QuitEvent()
  5. InetAddress Class