I’m creating a new Java project for a concept/construct that’s usually referred to with an ampersand (e.g. PB&J). Is it ok to name the project that? Should I avoid it? Are there any symbols that are not allowed in Java project names? Are there any symbols that are generally avoided? Where do symbols come in with regard to Java project naming conventions?
Edit: Sorry for the misunderstanding. It’s not a Java project really, it’s an Eclipse Java project.
Java itself does not have the notion of “project”. What you probably are referring to are IDEs like Eclipse. They might be able to use special characters like “&” in project names, but imho you really should avoid using them. It will make more trouble than it’s worth.
Another character which should be avoided is “!”, as it has a special meaning within Java for URLs pointing to resources within JAR Files.