architecture Online Quiz - 19
Description: architecture Online Quiz - 19 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: architecture |
public class Va { public static void main(String[] args) { doCalc(1,2); doCalc(2); } //Point1. code to be inserted here } Which of the following inserted individually at Point1 will compile?
public class NumbPlay { int x=5; public static void main(String[] args) { new NumbPlay().doPlay(); } void doPlay() { int x; System.out.println(++x); } } The output is
try {int x = Integer.parseInt(“one”);} Which of the following could be used to create appropriate catch block ?
import java.util.Iterator; import java.util.Set; import java.util.TreeSet; public class TreeTypeSet { public static void main(String[] args) { // TODO Auto-generated method stub Set set = new TreeSet(); set.add("2"); set.add(3); set.add("1"); Iterator it = set.iterator(); while (it.hasNext()) { System.out.print(it.next()+" "); } } } Output is
Which of the following method names follow the JavaBeans standard ?
Which will legally declare, construct, and initialize an array?
What are the life-cycle methods of JSP?
What is the role of JSP in MVC Model?
What do you understand by JSP translation?
What are the J2EE clients from the below list?
Can we have pure java code inside JSP
Every Custom Servlet extends javax.servlet.http.HttpServlet class
Web container translates JSP to Servlet for every request of the JSP
A JSP page can include another JSP page but not an HTML page
Can we write a constructor for servlet?
Which statement below is true?
Which are implicit objects in a JSP?
Difference between GET & POST method. (Choose the right answer)