Java Naming Convention
I've been studying Java hard for the past week, and so far I've been able to generate reasonable code However, I seem to have a problem understanding the Java Naming Convention
I just read a tutorial that said that class names should start with capital letters If I look at the code I've written so far, I actually use lowercase names, such as:
import java.io.*;
import java.util.*;
class orange implements Comparator {
public int mango(...) {
}
}
class jason {
public static void main(String args[]) throws java.io.IOException {
{
//content here
}
}
}
As you can see, both my names begin with lowercase letters When I compile and execute the program, I have no compilation errors and everything works as expected I should have thought that with the lowercase class name SART, it would end up with a compilation error: but that didn't happen Why?
If it helps, I run openjdk / icedtea
Solution
A good programmer must follow the naming conventions specified in any programming language in order to obtain a neat and effective program
For more Java Naming Conventions, see link
