What happens if a java thread throws nullpointer exception interview

1,000 views · Published 20 October 2012 · 1:41 · Indexed 22 September 2026

Channel: Interview DOT · 2012 · Science & Technology

Watch on YouTube

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. JOB VACANCIES IN TOP IT / NOT-IT COMPANIES

UPLOAD YOUR RESUME IN 1 MINUTE ! ! !
http://www.interviewdot.com/upload-resume/uploadresume.htm

http://www.interviewdot.com http://www.interviewdot.com http://www.interviewdot.com

package threadLearn;

public class MyInterviewDotThread implements Runnable {

 @Override
 public void run() {
  
  while(true){
   System.out.println("I am the running thread."); 
   throw new NullPointerException();
  }

 }

}

http://www.interviewdot.com http://www.interviewdot.com http://www.interviewdot.com

More from this channel