Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

How are Java source code files named?

Answer Posted / vijayakumar chinnasamy

If a java source code file contain public class then the
source code file name should be public class name other
wise compiler error.


if a java source code does not contain the public class
then the name may be class name or anything ,not a problem.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List some java keywords sun like c, c + + keywords?

214


What are benefits of java?

193


What is downcasting?

206


What do you mean by an interface in java?

181


What is method overloading with type promotion?

202






What are the three parts of a lambda expression? What is the type of lambda expression?

227


what is meant by encapsulation?

244


What is the difference between jdk and jre?

191


Describe method overriding

209


Does java map allow duplicates?

160


What is the difference between stringbuffer and stringbuilder?

179


Can we have any other return type than void for main method?

198


What is boolean in java?

173


What does exclamation mean in java?

193


Where are variables stored?

192