1)<%! String myString=”Hello” %> It needs to have a ; at the end like this <%! String myString=”Hello”; %> 2) <% String myString=request.getServerName() %> Same as above the ; is missing 3) <%= out.print(“Hello” %> <%= means out.print so esssentially it would be out.print(out.print("Hello")); which is not the way how it should be... 4) <%= “Hello” %> This is the correct one as given by the author.
Don't get me started about those stupid light bulbs.