luck, db
There are no new questions, but there may be new answers.
All things are lawful, but not all things are profitable.
Darryl Burke wrote:<gazes intently at crystal ball/>
Your code in Example.java declares a non-public class Eample.
Trying to collect the broken pieces of my life,in the process of making out a beautiful picture out of it.
Sachin Tripathi wrote:-> Compiler will always create a .class(bytecode from your source code) for every class you have in your .java file(Example.java)
At runtime your .class(bytecode)gets executed
So you have to provide correct .class name at runtime
Trying to collect the broken pieces of my life,in the process of making out a beautiful picture out of it.
Sachin Tripathi wrote:Compiler will always form a .class for every class in .java file ,if all classes are not public.
Trying to collect the broken pieces of my life,in the process of making out a beautiful picture out of it.
Sachin Tripathi wrote:Yes Vilda kindly read my post again
I had mentioned Both cases
.java with any public class or without any public class
Don't get me started about those stupid light bulbs. |