1,HTML source code£º <html> <head> <title>How to use Class</title> </head> <body> <script src="jsjava.js"></script> <script> var c=Class.forName("ClassNotFoundException"); var instance=c.getConstructor([Integer,String]).newInstance([0,"This is an error!"]); document.write(instance.message); </script> </body> </html> 2,The display:

This is an error!