Skip to content
  • Home
  • Selenium
    • Setup & Launching Browsers
    • StaleElementReferenceException
    • Locators in Selenium
    • Basic Concepts Of Selenium
    • Handling Calendar in Selenium
    • All Waits in Selenium
    • Page Object Model – PageFactory in Selenium
    • Front End Automation Strategies
    • JavaScript Usage in Selenium
    • Usage of Java Stream API in Selenium
    • Handling Dropdown in Selenium WebDriver
  • API Testing
    • Kick Start API Testing
    • Postman Tutorials
    • Learn REST Assured End to End
    • Industry Level End To End Automation Framework From Scratch
  • TestNG
    • DataProvider Concept in TestNG
  • GIT Tutorial
    • GIT Basics Concepts
    • Git Tutorial – E2E – Basics To Advanced
  • About Me

Tag: java programs

Java Program To Find Closest Value Of A Given Number in Unsorted Array

June 26, 2020 Amod Mahajan Leave a comment

I have explicitly added the term “Unsorted” array but the interviewer may not say this piece of information and expect…

Continue Reading →

Posted in: JAVA Topics Filed under: Find closest number in array, Find Closest Value Of A Given Number, java programs, leetcode java programs

Frequently Asked Java Programs: 34 – Java Program to Check if Two Strings are Anagram

May 20, 2019 Amod Mahajan Leave a comment

Hello Folks, As part of Frequently Asked Java Programs In Interviews For Freshers And Experienced, in this post we will see…

Continue Reading →

Posted in: Selenium Topics Filed under: anagram strings, frequently asked java programs, java, java interview question, java program to find anagrams, java programs

Frequently Asked Java Programs: 33 – Insert a String into Another String at given index

May 15, 2019 Amod Mahajan Leave a comment

Hello Folks, As part of Frequently Asked Java Programs In Interviews For Freshers And Experienced, in this post we will see…

Continue Reading →

Posted in: Selenium Topics Filed under: frequently asked java programs, inserting string into string, java interview question, java programs

Frequently Asked Java Programs: 32 – Swap Two String Variables Without Using Third Variable

May 5, 2019 Amod Mahajan Leave a comment

Hello Folks, As part of Frequently Asked Java Programs In Interviews For Freshers And Experienced, in this post we will see…

Continue Reading →

Posted in: Selenium Topics Filed under: frequently asked java programs, interview java programs, java interview question, java programs, swap two number variables in java, swap two string variables

Frequently Asked Java Programs 31 – Java Program to Find Common Characters in Two Given Strings

April 8, 2019 Amod Mahajan Leave a comment

Hello Folks, As part of Frequently Asked Java Programs In Interviews For Freshers And Experienced, in this post we will see…

Continue Reading →

Posted in: Selenium Topics Filed under: common characters in two strings, frequently asked java programs, java, java programs, string

Frequently Asked Java Program 30: Java Program to Find Distinct Characters In Given String

February 12, 2019 Amod Mahajan Leave a comment

Hello Folks, As part of Frequently Asked Java Programs In Interviews For Freshers And Experienced, in this post we will…

Continue Reading →

Posted in: Selenium Topics Filed under: distinct characters in string, interview java programs, java programs, lastIndexOf, string, unique characters in string

Frequently Asked Java Program 22: Java Program to Trim Whitespace From String Without Using Trim Method

October 28, 2018 Amod Mahajan 2 Comments

Hello Folks, This interview question was asked in Deloitte.  Write a java program to Trim a given string without using…

Continue Reading →

Posted in: Frequently Asked Java Programs In Interview Filed under: interview java programs, java programs, string, trim, trim whitespace
Copyright © 2025 — Ascension WordPress theme by GoDaddy