humanum errare est.
Originally posted by achana chan:
(1) I have a piece of code with both public and private methods : do I assume right that the public methods can be called from other JAVA applications through "import" ?
(2) In this class-file , there is this method :
public String toString(){
return "Name : " + v_name + "\n" + ... ;
}
Even though this method was not explicitly "called" from the JAVA application which inherited them, it displayed the results of the db queries. Do I assume right that this is due to the "return" JAVA command ?
(3) Will a JAVA application e.g.
work through all its methods (as distinct from a class-file, which will only use the method() called upon ?
(4) Using package, I seem to inherit everything in the subdirectory specified in the package statement e.g. package thisDemo seems to allow me to pull in all the classes in the subdirectory .../myDemo
(5) Similar to (4), I can "import myDemo.*" can I can call on all public methods, so what is the fine differences.
humanum errare est.
humanum errare est.
humanum errare est.
humanum errare est.
Originally posted by achana chan:
Do you work for JavaRanch ?
Don't get me started about those stupid light bulbs. |