Professional Documents
Culture Documents
Java Ques
Java Ques
Q2. Which method is defined in Runnable interface to create a thread? A)setPriority B)Join C)run D)start
Q3. Which object in javax.servlet is used to share an object at application level? A)ServletRequest B)ServletResponse C)ServletConfig D)ServletContext
Q4. Which scripting element in JSP is used to create an instance variable? A) Scriptlet B)Declaration C)Directive D)Expression
Q Create an user defined exception called MyException that will raised if the given number is less than 100.Display an appropriate message through a member function your exception class.Create a class and show the application of your create exception.