Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
General <strong>Java</strong> Questions II<br />
Receive our newsletter with new tips! Almost 6,000 subscribers (by June 2001) can not be wrong!<br />
They read our tips every week! To subscribe to The <strong>Java</strong> FAQ Daily send empty e-mail to:<br />
javafaq-tips-subscribe@topica.com or visit at:<br />
http://www.topica.com/lists/javafaq-tips/<br />
General <strong>Java</strong> Questions II<br />
Q: I wonder what happened if I remove "deprecations" from my code, for<br />
example size() and put getSize().<br />
Don't the programs work any more on older browsers (e.g. IE3)?<br />
Answer: Check the docs to see whether they say "Since 1.1", "Since 1.2" or "Since<br />
1.3" - if so, they will not work in the oldest MS VM.<br />
Keep in mind that Sun's programmers haven't been very good at actually<br />
documenting this for all classes and methods.<br />
or directly here:<br />
To check your code against any version of the JRE (1.1, 1.2, 1.3), use<br />
<strong>Java</strong>PureCheck: http://java.sun.com/100percent/<br />
--<br />
Marco<br />
Q: How do we exchange data between <strong>Java</strong> and <strong>Java</strong>Script and vice-versa?<br />
Visit us here and you will find<br />
much more tips!<br />
Answer: Public variable and methods of <strong>Java</strong> Applet are visible to a HTML document.<br />
So using <strong>Java</strong>Script you can access the public variables and public functions.<br />
The syntax is:<br />
var some_var = document.appletname.variable_name<br />
With this you will get the value of the variable variable_name in your <strong>Java</strong>Script<br />
variable some_var.<br />
Q: Constructors and methods: are they the same?<br />
file:///F|/350_t/350_tips/general_java-II.htm (1 of 13) [2002-02-27 21:18:24]