What format types can Javaâ€™s `ImageIcon` class handle when loading an image?
The `ImageIcon` class can only handle `.jpg` and `.png` formats, but not `.gif` or `.bmp`.
Thatâ€™s partially correct. `ImageIcon` actually supports a wider range of formats, including `.gif` and `.bmp`.
Can you list all the image formats supported by `ImageIcon`?