Wednesday, August 15, 2018

Illegal Character when trying to compile java code ,getting illegal character: '\u0000'

This error will occur if you have unwanted character other than UTF-8 in your jave file .

To resolve this open your file in notepad++

Select encoding type as mentioned in below image










then it will show you unwanted characters.


Remove all these characters from file and save file.
Again Compile same file .This time you should get error while compiling file.

No comments:

Post a Comment

How to check whether operating system is 64 bit or 32bit?

What is 32 and 64 bit operating system? The terms 32-bit and 64-bit refer to the way a computer's processor that is CPU, handles info...