What are the disadvantages of using thread?
Latest Answer: while using threads, each thread has access to object's instance variable. so while one thread is making changes to that instance variable, another thread may access it. It results in inconsistency. so all methods which access important instance variables ...
How one thread can be stopped without coming out from the main programme?
Latest Answer: We can suspend thread execution for a particular period of time by using sleep() method
If we want to stop 1 thread execution until another thread execution is completed join() method is used
By using set Daemon() we can stop our thread execution, ...
Which is the most super class of all the Java classes?
Latest Answer: "Object" is the super most class of all Java classes by default. ...
How to pass values from HTML page to the Servlet?
Latest Answer: we can pass html data to servlet using getParameter() method for example in doPost(......public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {// reads text field ...
How to give newline after creating level or textfield in Java Applet?
What is deamon thread?
Latest Answer: Deamon thread is system level thread. You can create this thread. It will manage the user level threads. ...
How to run Servlets in Tomcat 5.3?
Latest Answer: Configure the web.xml file and deploy the Servlet into WebApps dir of TOMCAT. ...
When do you use these two methods?setXxx() and getXxx()
What are Conditional Statements?
Latest Answer: The statements which are executable only when it satisfies a particular condition example:if(some condition) { // some statement }switch (input){case 1:case 2://default:} ...
Why should we set class path and path environment variables while installing J2SE and why not while Turbo C?
Latest Answer: Set the PATH variable if you want to be able to conveniently run the JDK executables (javac.exe, java.exe, javadoc.exe, etc.) from any directory without having to type the full path of the command. If you don't set the PATH variable, you need to specify ...
View page << Previous 1 2 3 [4] 5 6 7 8 9 10 Next >>

Go Top