Got this error when compiled java code in ubuntu.
![Got this error][1]
error: illegal character: \'\\ufeff\'
In case your are working on Windows O.S. and use Eclipse (which don't have the functionality to remove the BOM from the file), just open the file in Notepad++ and in the encoding menu, select "UTF-8", then save the file.