Tip Bank

DevX - Software Development Resource

What is the Thread.interrupt()method’s purpose?

Question: What is the purpose of the Thread.interrupt()method? I expect that if I call the interrupt()method of a sleeping thread, anInterruptedException will be thrown. Here is aquick code sample showing

DevX - Software Development Resource

Reading from URL into String

Question: What is the maximum size of a string array I can have in my applet?I am trying to store some stock prices in a string array after reading themfrom

DevX - Software Development Resource

Launching Another Application from Java

Question: Is it possible to launch another application from aJava application (not an applet)? Answer: Yes. There are two classes of interest for performingsystem level functions such as this: java.lang.Runtime

DevX - Software Development Resource

Passing Data Between Two Threads

Question: I am new to Java and am currently trying toassociate idioms and techniques from otherlanguages/environments with like capabilities inJava. Specifically, I am trying to determine howto perform inter-thread and

DevX - Software Development Resource

Writing Servers in Java

Question: How can a server written in Java work like a UNIX daemon? To me it seems that a server cannot be an applet. Is it a standalone application? Answer: