Академический Документы
Профессиональный Документы
Культура Документы
Answer:
3. Find the problems in the code. The subject code (cs506) was sending request to forward
dispatcher http. (Code was given to me) (5 marks)
4. J2EE related question. (3 marks)
5. Which application layer you would use if you want to access [login, authentication, DBAccess] and
want to store this information? (3 marks)
Paper2:
Cs506
1:MVC model1 with diagram
Answer:
2:System. gc() we call this method manually or not
Answer:
3:Which Java technologies used for client side and server side validation
Answer:
6:Write syntax of java method that will set thread priority to minimum using pre define
constant
Answer:
Thread.setPriority(Priority value);
7:Code to search cookies named amazon from the available and disply messege
paper3:
main() method is the entry point for any program in java. This is the method which is
invoked by the JVM to execute the program.
Every class including abstract classes has a constructor. Even if you don't declare one
explicitly, compiler will add a default constructor. The main() method has to belong to
some public class (which will always have a constructor). Yes generally it is preferable to
design another class which has all the programming logic and just instantiate this class
in the main class i.e. the one with main() method in it.
But you can also have a class with main method which creates object of its own class
(because you cannot access instance members from static methods).
How to request-response is incorporated in servlet? Explain each with the help of diagram. 5
Marks.
Write a simple code that write following in text file. 5 Marks.
Web design and development
CS506
Answer:
To simplify code in JSP expressions and scriptlets, you are supplied with eight implicit
objects three of them are given write remaining objects name. 5 Marks.
1. Response
2. Request
3. Out