Monday, 17 March 2008
New Java programmers often make similar mistakes when they start out coding – I did it myself when I started out and I have seen many others do the same. One of the most common mistakes is to use a different name (or even a different case) for the Java Class itself and the filename. Typically, Java expects the Class Name to match the file name ending in .java.
So, if the Class name is MyApp then the file name should usually be MyApp.java and it is also important to maintain the correct upper and lower case letters, for example – the following piece of code should be stored in MyApp.java
public class MyApp
{
public MyApp()
{
}
}
Related
- Ideas for a new common programming language
- The first step to recovery is to admit you have a problem
- Barcode Software
- Cobol


