Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch Topic

Question:Can a public class MyClass be defined in a source file named YourClass.java?


A: No the source file name, if it contains a public class, must be the same as the public class name itself with a .java extension.

asked Sep 13, 2013 in Java Interview Questions by anonymous
edited Sep 12, 2013
0 votes
22 views



Related Hot Questions



Government Jobs Opening


...