This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
en empty source file is valid... the compiler doesn't generate any class file because there is nothing to generate anyway... HIH ------------------ Valentin Crettaz Sun Certified Programmer for Java 2 Platform
Originally posted by sun ram: Hi, Is empty file valid source file. for emptry file javac desn't report any error. But it is not generating class file. Bye SR
javac converts the java statements (present in source file) into byte code.This code is then saved in seperate file having "class" extension.An emty java source file contains no statement(sine it is empty), therefore there will be no byte code, & hence no need for seperate "class" file. Bye. Viki.
------------------ Count the flowers of ur garden,NOT the leafs which falls away!