Harish
asked

Expert
Abhay Jajodia answered
Hi Harish Hansda,
No, Java class names cannot contain spaces. A class name must be a single identifier.
If you want multiple words, write them together using CamelCase, like this:
class MyFirstClass {
}
If you have more questions, I am here to help π
Java
This question was asked as part of the Learn Java Basics course.
Our Experts
Sudip BhandariHead of Growth/Marketing
Apekchhya ShresthaSenior Product Manager
Kelish RaiTechnical Content Writer
Abhilekh GautamSystem Engineer
Palistha SinghTechnical Content Writer
Sarthak BaralSenior Content Editor
Saujanya Poudel
Abhay Jajodia
Nisha SharmaTechnical Content Writer
Udayan ShakyaTechnical Content Writer
