1,HTML source code£º <html> <head> <title>How to use IllegalStateException</title> </head> <body> <script src="jsjava.js"></script> <script> var list=new List(); try{ list.add("a"); }catch(e){ document.write(e.name); } </script> </body> </html> 2,The display text is:

jsjava.lang.IllegalStateException