Atom Atom feed

Friday Java Quiz: Will This Code Compile

Without firing up your Java compiler, guess if the following class will compile:

interface $^A {}

where "^A" is the character whose ASCII value is 1. (You enter it as ^V^A in vi or C-q C-a in Emacs.)

Tags :


Re: Friday Java Quiz: Will This Code Compile

Hi There, I get the following error. Test.java:5: error while writing $: $.class (The filename, directory name, or volume label syntax is incorrect) interface $ { ^ 1 error BR, ~A

Re: Friday Java Quiz: Will This Code Compile

Well, your comment took the blog entry down. I have to go to the backing store to edit out the offending character.


Add a comment Send a TrackBack