web technology Online Quiz - 117
Description: web technology Online Quiz - 117 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: web technology |
In which file will the server side validations will be handled
Where will the Life Host region of the server be mentioned
Given: public static void before() { 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() + " "); } Which statements are true?
What is output to the web page on the second access to the same instance of the following JSP? (Choose one.) Chapter 6 Question 2
Chapter 6 Question 2
Which architecture does PS framework follow
In the UML notation, parameterized (generic) classes are represented by
Which of the following are true statements about the JavaServer Page life cycle? (Choose two.)
Which of the following techniques is likely to return an initialization parameter for a JSP page? (Choose two.)
What will be the result of pressing the submit button in the following HTML form? (Choose two.)
Which of the following are valid servlet methods that match up with HTTP methods? (Choose four.)
Which statements are true about comparing two instances of the same class, given that the equals() and hashCode() methods have been properly overridden? (Choose all that apply.)
Given: import java.util.*; class MapEQ { public static void main(String[] args) { Map m = new HashMap(); ToDos t1 = new ToDos("Monday"); ToDos t2 = new ToDos("Monday"); ToDos t3 = new ToDos("Tuesday"); m.put(t1, "doLaundry"); m.put(t2, "payBills"); m.put(t3, "cleanAttic"); System.out.println(m.size()); } } class ToDos{ String day; ToDos(String d) { day = d; } public boolean equals(Object o) { return ((ToDos)o).day == this.day; } // public int hashCode() { return 9; } } Which is correct? (Choose all that apply.)
Given: 12. public class AccountManager { 13. private Map accountTotals = new HashMap(); 14. private int retirementFund; 15. 16. public int getBalance(String accountName) { 17. Integer total = (Integer) accountTotals.get(accountName); 18. if (total == null) 19. total = Integer.valueOf(0); 20. return total.intValue(); 21. } 23. public void setBalance(String accountName, int amount) { 24. accountTotals.put(accountName, Integer.valueOf(amount)); 25. } 26. } This class is to be updated to make use of appropriate generic types, with no changes in behavior (for better or worse). Which of these steps could be performed? (Choose three.)
Given a method declared as public static List process(List nums) A programmer wants to use this method like this // INSERT DECLARATIONS HERE output = process(input); Which pairs of declarations could be placed at // INSERT DECLARATIONS HERE to allow the code to compile? (Choose all that apply.)
Given: 3. import java.util.*; 4. public class Mixup { 5. public static void main(String[] args) { 6. Object o = new Object(); 7. // insert code here 8. s.add("o"); 9. s.add(o); 10. } 11. } And these three fragments: I. Set s = new HashSet(); II. TreeSet s = new TreeSet(); III. LinkedHashSet s = new LinkedHashSet(); When fragments I, II, or III are inserted, independently, at line 7, which are true? (Choose all that apply.)
class C{ int i; public static void main (String[] args) { int i; //1 private int a = 1; //2 protected int b = 1; //3 public int c = 1; //4 public System.out.println(a+b+c); //5 } }
Base products are installed separately.
What are JSP scripting elements ?
How many implicit objects in jsp?
What are the kinds of comments in JSP?