Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
Java
« Previous
Next »
Which of the following is not a method of the Thread class.
Options
- public void run()
- public void start()
- public void exit()
- public final int getPriority()
CORRECT ANSWER : public void exit()
Discussion Board
Thread Class - Exit class
The java.lang.System.exit() method terminates the currently running Java Virtual Machine. It is a status code where a nonzero or 1 indicates abnormal termination of the program whereas zero or 0 indicates normal termination of the program. It is not included in the thread class as it is not the part of the execution cycle of the method.
Following is the declaration for java.lang.System.exit() method
public static void exit(int status)
Parameters
status -- This is the exit status.
The return type of this is nothing.
Rohit Sharma 07-28-2014 01:13 AM
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
Java Beginner (11)
Java (39)
Java (40)
Java (22)
Java (30)
Java (25)
Java (20)
Java (20)
Core Java (20)
Core Java (10)
Core Java (72)
EJB (20)
JDBC (20)
Applet (20)
Struts (21)
Servlets (20)
Java Web Services (20)
Javascript (40)
J2EE (10)
jQuery (46)
Advertisement
▲