It wouldn't matter that you typed that the file was ThreadTester.java . The name of your file and the name of your public class must be the same.
ex:
If your class was:
public class TestClass{}
Then your file must be named:
TestClass.java
So in the case of the source code posted the name of the file should be. C:\javaprj\ThreadTester.java .
Hope this helps.