devxlogo

Tip Bank

Using JavaScript to Find User Info.

Question: I’m working for a local newspaper, and we are writing a survey to see the type of technology our viewers are currently using to access the site. Is there

JavaScript Variable Declaration

Question: I am new to JavaScript, but familiar with a variety of other languages. I don’t quite understand what the following variable declarations do: ns4 = (document.layers)? true:falseie4 = (document.all)?

Objects and Sockets

Question: Is it possible to send an object over a socket connection in Java? Answer: Objects can be transmitted over a socket connection in the same way that they are

Multi-dimensional Arrays

Question: Can I create multi-dimensional arrays in JavaScript? Do you have an example? Answer: Yes and no. You can’t create multi-dimensional arrays (as such) in JavaScript. What you can do

Selecting Three Radio Buttons

Question: I want to validate a form so that three radio buttons may be checked, but no more. This will be used in a “what are your top three choices”

EJBs and Servlets

Question: Both Enterprise JavaBeans and Servlets are server side components. What are the major differences between them? Specifically, what is the difference between a Session Bean and a Servlet? Answer:

Interface vs. Abstract Class

Question: What is the difference between an interface and an abstract class? Answer: Within the confines of Java syntax, an interface is a type that only defines abstract methods and

Mouse Position

Question: Can I retrieve the position of the mouse on the screen? I need to know the X and Y coordinates because I want to position a layer at that

Use of SocketImpl Class

Question: What is the SocketImpl class used for? Answer: SocketImpl is an abstract class that provides an interface for customizing socket implementations. Subclasses of SocketImpl are not intended to be