Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

if a java file without any source code is valid java file?

Answer Posted / la_di

(I suppose you mean IS not IF)

No, an empty file is not a valid java file since you have
to use the same class-name as file name. (A file with a
valid class declaration but an empty body is valid thou)

Is This Answer Correct ?    5 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a class reference?

1016


What are keywords in java?

949


What is method overloading and method overriding?

998


I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?

953


What is meant by the value of a variable?

859


Is 0 true or false in java?

950


What is the full meaning of java?

993


What are different types of constants?

964


What is difference between stringbuffer and string?

898


What are the limitations of procedural programming approach?

998


What is JFC?

1159


What is multi-catch block in java?

1018


Is vector ordered in java?

956


Can we call the constructor of a class more than once for an object?

1041


Is jdk required on each machine to run a java program?

1213