Java & JavaScript Image Quiz Test Your Java & JavaScript Skills: Beginner’s Quiz 1 / 5 Which Java class is commonly used to handle images in GUI applications? java.lang.Image java.io.Image java.awt.Image java.swing.Image 2 / 5 How can you display an image using JavaScript dynamically? By using System.out.println() By changing the src property of an image element By using document.write() only By using a CSS class only 3 / 5 Which JavaScript property is used to change the source of an image? image.path image.source image.src image.link 4 / 5 Which Java method is used to load an image from a file? openImage() loadImage() image.load() Toolkit.getDefaultToolkit().getImage() 5 / 5 In JavaScript, which event can be used to check when an image has loaded? onload onfocus onclick onhover Your score isThe average score is 0% 0% Restart quiz Send feedback