Passing a Method to Another Class to be Called By That Class
Question: Is it possible to pass a method to another class,so that method can be called by that class at a later date?For example, in C you can pass an
Question: Is it possible to pass a method to another class,so that method can be called by that class at a later date?For example, in C you can pass an
Question: I am trying to write a Java applet which canretrieve data from the user and then write itto a file on the server. Unfortunately I do nothave the access
Question: I am trying to create a Java routine to play an .au file whenit starts up (I want to then add this as a startup to my Web page).I
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
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
Question: How do I use the .net classes to log on to a mailserver and request, say, the number of new mailmessages? Or send a message?Just POP3/SMTP. An example would
Question: This may be too vague, but:I spawn a thread (after a button click) which bringsup a new window. This works great on my PC runningNetscape 3.0 and Internet Explorer,
Question: I have a server application listening for clientapplets to connect. The server spawns a new thread each timea connection to a client is established. I want to keeptrack, i.e.
Question: How do you lock a file in Java to prevent simultaneous multipleaccesses? Answer: If you’re concerned about simultaneous access by independent processes,you’ll have to rely on the host OS