Interview Questions and Answers for 'Price waterhouse coopers (pwc)' | Search Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers for 'Price waterhouse coopers (pwc)' - 3 question(s) found - Order By Rating

 Q1. How to instantiate jsp variable from another jsp?JSP
Ans. using session attribute.

session.setAttribute("userId",userId);

in first jsp

int userId=session.getAttribute("userId");

in second jsp;

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


Related Questions

  Difference between the jsp scriptlet tag and jsp declaration tag?
  What is a config Object?
  What is a pageContext Object?
  What are the phases of the JSP life cycle ?
  What are JSP directives ? What are different types of directives ?
 What are JSP Scriptlets?
 How can we remove a JSP page from getting cached ?
 Ho do you share / transfer variables between JSP pages ?
 Difference between Include Directive and include action in jsp
 Difference between import and include directive in jsp


 Q2. How do you take screenshot in selenium?Selenium
Ans. TakeScreenshot th = TakeScreenshot(driver); //Enable the driver object to take screenshot

File src = th.getScreenShotAs(OutputType.FILE);

FileUtils.copyFilesrc("locationWhereUWantToPlaceTheScreenshot.jpg");

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     webdriver  selenium     Asked in 1 Companies


Related Questions

  How to access a Web Element if there are many elements with the same XPath ?
 What is a Webdriver ?
 How to track immediate parent of the child in selenium using xpath?
 How to capture Screenshot when the testcases are failed?
 As a user, when you will use the Jenkins with the Selenium and what is the scope of the same?
 Set Locators priority wise in selenium WebDriver.
 How can you handle JavaScript popup using selenium ?
 How to work with dynamic webtable ?


Very Frequently asked to fresh graduates and less experienced. Favorite question in Walk in drives. Frequently asked in Indian Services companies.
  Q3. Difference between Overloading and Overriding ?Core Java
Ans. Overloading - Similar Signature but different definition , like function overloading.

Overriding - Overriding the Definition of base class in the derived class.

  Sample Code for overloading

  Sample Code for overriding

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   oops   overloading   overriding   oops concepts   basic interview question   overloading vs overriding     Asked in 86 Companies      basic        frequent

Try 1 Question(s) Test


Related Questions

  What are the difference between composition and inheritance in Java?
 Explain OOPs

or

Explain OOPs Principles

or

Explain OOPs Concepts

or

Explain OOPs features

or

Tell me something about OOPs
  What is the difference between Encapsulation and Abstraction?
  What are points to consider in terms of access modifier when we are overriding any method?
 What is Polymorphism in Java ?
 Can you give a real world example of Encapsulation and Abstraction ?
  Why every object constructor automatically call super() in Object before its own constructors?
  How compiler handles the exceptions in overriding ?
  Difference between Composition and Inheritance ?



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: