General Java Questions II
Visit us here and  you will find
much more tips!
Receive our  newsletter with new tips!  Almost 6,000 subscribers (by June 2001) can not be wrong! 
They read our tips every week! 
 To subscribe to The Java FAQ Daily send empty e mail to:
javafaq tips subscribe@topica.com
  or visit at:
http://www.topica.com/lists/javafaq tips/
 General Java Questions II
  
 Q: I wonder what happened if I remove "deprecations" from my code, for
example size() and put getSize().
Don t the programs work any more on older browsers (e.g. IE3)?
Answer:  Check the docs to see whether they say "Since 1.1", "Since 1.2" or "Since
1.3"   if so, they will not work in the oldest MS VM. 
Keep in mind that Sun s programmers haven t been very good at actually
documenting this for all classes and methods.
or directly here:
To check your code against any version of the JRE (1.1, 1.2, 1.3), use
JavaPureCheck: http://java.sun.com/100percent/
  
Marco
 Q: How do we exchange data between Java and JavaScript and vice versa?
Answer: Public variable and methods of Java Applet are visible to a HTML document.
So using JavaScript you can access the public variables and public functions. 
The syntax is: 
var some_var = document.appletname.variable_name
With this you will get the value of the variable variable_name in your JavaScript
variable some_var.
 Q: Constructors and methods: are they the same?
I need a little help here...I have been teaching that constructors are not methods. This
is for several reasons, but mainly because JLS says "constructors are not members"
and members are "classes, interfaces, fields, and methods."
So, now the rest of the staff is ganging up on me and making life a little nasty. They
quote Deitel and Deitel, and Core Java (which references "constructor methods") and
who knows how many other books. 
The one we are teaching in is loaded with so many errors that even though it calls
file:///F|/a_jsite/350_tips/general_java II.htm (1 of 14) [2001 07 08 11:24:53]






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java web hosting

 

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved