Q1. Print one simple text using the Lambda Expression (One Argument is passed inside the argument list). Ans:- Q2. Print one simple text using the Lambda Expression (No Argument is passed inside the argument list). Ans:- Q3: Example of multiline expression inside the Lambda Body :- write one functional interface with a method having string…
Month: November 2020
What is the Difference between groupId and artifactId in Maven
The main difference between the groupId and artifactId is groupId specifies the ID of the project group while the artifactId specifies the id of the project. So group Id is always used to identify the project group and artifactId is used to identify the specific project that is developed by that particular group of organization….
What is Data Driven Testing Techniques in Selenium?
Data-driven testing is one of the popular testing approach. Why this approach is so popular and useful? Take a real life example. Just write the test cases to test the “Username” field for the rediffmail pages. The possible test-cases at gross level are:- Test Case ID Test Case Subject Test Case Description Test Steps Prerequisites…
What is Page Object Model (POM) in Selenium?
What is Page Object Model? It’s a design pattern , which is used by many test automation projects. The Page Object is basically a class file which acts as an interface of any web page. This class contains the web elements and many methods to interacts with those web-elements. And to interact with these pages,…
What is Encapsulation in Java?
Encapsulation is a technique to hide the nature of the declared variables within a class and this variables can only be accessed from another class via some public methods. Check the below example where the variable is declared as private and this variable can only be accessed from other class by using the public methods…