Monday 4 January 2021

Java Interview Questions for SDET/Automation Testing? MUST KNOW CONCEPT

 


For Automation Testing and SDET profile, two concepts of Java are very important: List & Array. Let's try to explore some of the concepts below. 

Check out the questions from 1 to 10 below:

Question set 21 to 30:
 
Question set 31 to 40:
 Question Set 31-40 

Question set 41 to 50:

Let's assume we have below arraylist:


ArrayList<String> arrlst = new ArrayList<>();


  •    How to convert List to array and array to list?

Click here for Answer

  •   How to remove a SubList from a List in Java ?

    Ans: List.subList(int fromIndex, int toIndex).clear()


  • How to do Sorting of An Array?

    Click Here For Answer 


  •  Difference between ArrayList and HashMap in Java?

    ==>ArrayList implement List Interface while HashMap is an implementation of Map interface.

    ==>
    ArrayList maintains the insertion order while HashMap does not maintain insertion order.

    ==>
    ArrayList allows duplicate elements while HashMap doesn’t allow duplicate keys but does allow duplicate values.


  • How to add element  to arrlst?

      Ans: arrlst.add(element);  

  •  Does list maintains insertion order?

    Ans:
    Both the ArrayList and LinkedList
    maintain the elements insertion order which means while displaying ArrayList and LinkedList elements the result set would be having the same order in which the elements got inserted into the List.


    Top Kubernetes Commands-Click Here


  • How to get length of Array and List?

 Click Here For Answer

  •     How to add element at any index?

     Ans: arr.add(index,element);

  • Selenium Interview Question SET-1
  • Selenium Interview Question SET-2
  • Selenium Interview Questions SET-3
  • Selenium Interview Question SET-4
 

*******************************************************************
For any doubts or career guidance, reach out to me 

****************************************

TOP 15 BDD - CUCUMBER Interview Q&A


************************************************

✍️AUTHORLinkedIn Profile

************************************************

Learn (API-Microservice)Testing+ Selenium UI Automation-SDET with Self Paced Videos prepared by FAANG employees and LIVE Doubt Session 

SDET TRANING VIDEOS AVAILABLE with Live Doubt Session(course-1 below,API TRaining Videos With Class Notes and Coding Set) and (API+UI, both course-1 & 2 below) Check Training Page for Course Content or reach out @whatsapp +91-9619094122. 
This includes classnotes, 300+ interview questions, 3 projects, Java Coding question set for product companies along with career guidance from FAANG employees for Automation and SDET.

For more details whatsapp : https://lnkd.in/dnBWDM33

*************************************************

SeleniumWebdriver Automation Testing Interview Questions:

https://automationreinvented.blogspot.com/search/label/SeleniumWebdriver

API Testing Interview Question Set:

https://automationreinvented.blogspot.com/2022/03/top-80-api-testing-interview-questions.html

DevOps Interview Q&A:

https://automationreinvented.blogspot.com/2021/11/top-11-devops-interview-questions-and.html 

Kubernetes Interview Question Set

https://automationreinvented.blogspot.com/search/label/Kubernetes

Docker Interview Question Set

https://automationreinvented.blogspot.com/Docker

Linux Interview question Set

https://automationreinvented.blogspot.com/search/label/Linux

Automation Testing/SDET Framework Design

https://automationreinvented.blogspot.com/search/label/FrameworkDesign

Java Related Interview Question Set

https://automationreinvented.blogspot.com/search/label/Java

GIT Interview Question Set:

https://automationreinvented.blogspot.com/2021/09/top-40-git-interview-questions-and.html

Coding Interview Question Set:

https://automationreinvented.blogspot.com/search/label/Coding%20Questions

Mobile Testing Interview Question Set:

https://automationreinvented.blogspot.com/search/label/Mobile%20Testing

Python Interview Question Set for QAE - SDET - SDE:

https://automationreinvented.blogspot.com/search/label/Python


 


 


1 comment:

  1. Good list of questions Sidharth. Keep sharing.

    ReplyDelete

All Time Popular Posts

Most Featured Post

Scenario Based Frequently Asked Interview Q&A on TestNG

  🔺 LinkedIn: https://www.linkedin.com/in/sidharth-shukla-77b53145/ 🔺 Telegram Group:  https://t.me/+FTf_NPb--GQ2ODhl Welcome to our compr...