- All mcqs were from mostly waqar files
-
- Question = page no 458 py dia gya programe questions mn likha howa tha person info wala uska missing code likhna tha
- Question = Least visible to most visible mentions karny thy
- Question = complete the following missing code
- // File Worker.java
- public class Worker implements Runnable {
- private String job ;
- //Constructor of Worker class
- public Worker (String j ){
- job = j;
- }
- //Implement run() method of Runnable interface
- public void run ( ) {
- for(int i=1; i<= 10; i++)
- out.println(job + ” = ” + i);
- }
- } // end class
Question No 4 =And aik long main layers k column bnany thy mean matching krni thi.presentation layer,data layer,business layer
Question no 5= threads call karni thi tably mn using Yield() execution
Question No =5Thread States: Life Cycle of a Thread
Pg no 285 py 29.4 RequestDispatcher: Include ki image di hoi thi usko clarify karna tha jis ka answer nichy likh rahi hn
- It will be more cleared from the following figure. User sends a HTTPRequest to Servlet1.
Serlet2 is called by Servlet1 by using include(request, response) method. The response
generated by Servlet2 sends back to Servlet1. Servlet1 can also add its own response content and
finally send it back to user.