Skip to content
  • Home
  • Placement Support
  • Courses
    • Manual Testing Course
    • Selenium Automation Testing
  • Success Stories
  • Java Programs
  • Interview Questions
  • Home
  • Placement Support
  • Courses
    • Manual Testing Course
    • Selenium Automation Testing
  • Success Stories
  • Java Programs
  • Interview Questions

Manual Testing Interview Questions for 6 Years Experience – Complete Senior-Level QA Guide

Introduction: Why Professionals with 6 Years Experience Search This Topic If you have 6 years of experience in manual testing, your interview expectations are very different from freshers or mid-level testers. At this stage, companies consider you a Senior QA […]

Manual Testing Interview Questions for 6 Years Experience – Complete Senior-Level QA Guide Read More »

Manual Testing Interview Questions for 10 Years Experience – Senior & Lead QA Interview Guide

Introduction: Why Professionals with 10 Years Experience Search This Topic If you have 10 years of experience in manual testing, your interview is no longer about definitions or basic testing knowledge. At this level, companies evaluate you as a Senior

Manual Testing Interview Questions for 10 Years Experience – Senior & Lead QA Interview Guide Read More »

Manual Software Testing Interview Questions – Complete Job-Preparation Guide

Introduction: Why Candidates Search for Manual Software Testing Interview Questions If you are preparing for a QA or software testing interview, one of the most searched topics is manual software testing interview questions. The reason is simple: manual testing is

Manual Software Testing Interview Questions – Complete Job-Preparation Guide Read More »

Manual and Automation Testing Interview Questions – Complete Job-Preparation Guide

Introduction: Why Candidates Search for Manual and Automation Testing Interview Questions If you are preparing for a QA interview in today’s job market, you will notice that most roles expect both manual and automation testing knowledge. That’s why candidates frequently

Manual and Automation Testing Interview Questions – Complete Job-Preparation Guide Read More »

Scenario Based Manual Testing Interview Questions – Complete Job-Preparation Guide

Introduction: Why Candidates Search for Scenario Based Manual Testing Interview Questions If you are preparing for a QA or manual testing interview, you may have noticed a clear pattern:👉 Interviewers rarely stop at definitions. Instead, they focus heavily on scenario

Scenario Based Manual Testing Interview Questions – Complete Job-Preparation Guide Read More »

Manual Testing Scenario Based Interview Questions – Complete Job-Preparation Guide

Introduction: Why Candidates Search for Manual Testing Scenario Based Interview Questions If you are preparing for a QA or software testing interview, you will quickly realize one important thing:👉 Most interviewers focus more on scenarios than definitions. That’s why manual

Manual Testing Scenario Based Interview Questions – Complete Job-Preparation Guide Read More »

Manual Testing Interview Questions for 4 Years Experience – Complete Job-Focused QA Guide

Introduction: Why Professionals with 4 Years Experience Search This Topic If you have around 4 years of experience in manual testing, you are no longer considered a junior tester, but you may not yet be a full QA lead. Interviews

Manual Testing Interview Questions for 4 Years Experience – Complete Job-Focused QA Guide Read More »

Top 10 Manual Testing Interview Questions for Experienced – Complete Job-Preparation Guide

Introduction: Why Experienced Candidates Search This Topic If you have experience in software testing and are planning a job change, you will notice one thing clearly: interviewers no longer ask only basic definitions. They focus on top 10 manual testing

Top 10 Manual Testing Interview Questions for Experienced – Complete Job-Preparation Guide Read More »

Manual Testing Interview Questions and Answers – Complete Job-Preparation Guide

Introduction: Why Candidates Search for Manual Testing Interview Questions and Answers If you are preparing for a software testing or QA interview, the first thing you search online is manual testing interview questions and answers. This is because manual testing

Manual Testing Interview Questions and Answers – Complete Job-Preparation Guide Read More »

Manual Testing Interview Questions for 5 Years Experience – Complete Senior-Level QA Interview Guide

Introduction: Why Testers with 5 Years Experience Search This Topic If you have 5 years of experience in manual testing, interviews become much deeper and more practical than junior-level discussions. At this stage, companies do not just test your knowledge—they

Manual Testing Interview Questions for 5 Years Experience – Complete Senior-Level QA Interview Guide Read More »

Manual Testing Interview Questions for 2 Years Experience – Complete Job-Focused Guide with Best Answers

Introduction: Why Candidates with 2 Years Experience Search This Topic If you have 2 years of experience in manual testing and are planning a job change, your interview expectations are very different from freshers. Interviewers will not only ask what

Manual Testing Interview Questions for 2 Years Experience – Complete Job-Focused Guide with Best Answers Read More »

Manual Testing Interview Questions for Freshers – Complete Beginner Guide with Best Answers

Introduction: Why Freshers Search for Manual Testing Interview Questions If you are a fresher preparing for a software testing or QA job, chances are high that you are searching for manual testing interview questions for freshers. This is because manual

Manual Testing Interview Questions for Freshers – Complete Beginner Guide with Best Answers Read More »

Manual Testing Interview Questions for Experienced – Complete Guide with Best Answers

Introduction: Why Candidates Search for Manual Testing Interview Questions for Experienced If you are an experienced software tester preparing for job interviews, you already know that interviews today are not limited to basic definitions. Recruiters focus heavily on manual testing

Manual Testing Interview Questions for Experienced – Complete Guide with Best Answers Read More »

Manual Testing Interview Questions for 3 Years Experience – Real-Time Questions, Answers & Scenarios

Introduction: Why Manual Testing Interview Questions for 3 Years Experience Matter If you have around 3 years of experience in manual testing, interview expectations change completely. At this level, interviewers do not test only definitions. They want to check: That’s

Manual Testing Interview Questions for 3 Years Experience – Real-Time Questions, Answers & Scenarios Read More »

Manual Testing Interview Questions – Top Questions, Answers & Real-Time Scenarios (2026 Guide)

Introduction: Why Everyone Searches for Manual Testing Interview Questions If you are preparing for a QA or software testing interview, one of the first things you search online is manual testing interview questions.Why? Because manual testing is the foundation of

Manual Testing Interview Questions – Top Questions, Answers & Real-Time Scenarios (2026 Guide) Read More »

 Test Case Management & Test Case Writing – Interview Question Bank

 Test Case Management & Test Case Writing  Basics of Test Cases Writing Test Cases – Common Examples  Classic Puzzles in Test Case Writing  Test Case Organization & Management  Test Case Execution & Maintenance  Tools & Reporting  Test Metrics & Reviews

 Test Case Management & Test Case Writing – Interview Question Bank Read More »

Database & Automation – Interview Question Bank

 From Past interviews  Database Basics (0–2 Years)  Intermediate Level (3–6 Years)  Advanced (7–10 Years)  Database + Automation (Python/Java)  Real-Time Scenarios

Database & Automation – Interview Question Bank Read More »

Comprehensive Scenario-Based Interview Questions for QA & Automation (0–10+ Years)

1. Manual Testing Scenarios 2. Selenium (Web Automation) Scenarios 3. Appium / Mobile Automation Scenarios 4. API Testing Scenarios 5. Database Testing Scenarios 6. Web Application Scenarios 7. Desktop Application Scenarios 8. Domain-Specific / Real-World Scenarios

Comprehensive Scenario-Based Interview Questions for QA & Automation (0–10+ Years) Read More »

 API Testing Interview Questions

1. Basics of API Testing What is an API? Explain with an example. What is the difference between REST and SOAP APIs? Explain the difference between GET, POST, PUT, PATCH, DELETE. What does it mean for an API method to

 API Testing Interview Questions Read More »

HR Interview Practice Questions

1. Personal Introduction 2. Education & Career 3. Workplace Behavior 4. Company & Job Role 5. Situational / Behavioral 6. Miscellaneous / Personality Do you have any questions for us? Who is your role model and why? What was the

HR Interview Practice Questions Read More »

Python Interview Questions

1. Python Basics 2. Python OOPs 3. File Handling & Data 4. Testing with Python (Pytest & Selenium) 5. API Testing with Python 6. Advanced Python (Practice)

Python Interview Questions Read More »

Interview Questions for SDET 4.5 to 6 years

Interview Questions for SDET 4.5 to 6 years

Interview Questions for SDET 4.5 to 6 years Read More »

Best Appium Interview Questions

      1. Appium Basics – Appium Interview Questions       2. Architecture & Internals       3. App Types & Setup       4. Writing Tests       5. Device Management       6. Synchronization       7. Advanced Topics       8. Real-time Scenarios

Best Appium Interview Questions Read More »

Best Selenium Interview Questions

 Selenium Basics – Selenium Interview Questions WebDriver & Browser Handling Wait Mechanisms Advanced User Interactions Framework Knowledge Handling Popups & Alerts Real-Time Scenarios

Best Selenium Interview Questions Read More »

Best Manual Testing Interview Questions

Manual Testing Interview Questions Intermediate Level

Best Manual Testing Interview Questions Read More »

Best Core Java Interview Questions – Techsarvam

OOPS Concepts & Design Principles – Core Java Interview Questions Collections Framework Exception Handling Multithreading & Concurrency Java 8+ Features

Best Core Java Interview Questions – Techsarvam Read More »

How to create Method Overriding program in java

Here is a Program on How to create Method Overriding program in java with Step by Step explaination. Step-by-Step Explanation of the Program – How to create Method Overriding program in java Example : The following java program illustrates a

How to create Method Overriding program in java Read More »

How to create Multidimensional array program in Java

Step-by-Step Breakdown: 1. Declare and Initialize the 2D Array: int arr[][] = {{1, 2, 3}, {2, 4, 5}, {4, 4, 5}}; Here, arr is a 2D array (an array of arrays) of type int. Here’s the way array looks: arr

How to create Multidimensional array program in Java Read More »

How to create Array program in java

Step-by-Step Explanation of the Program: Let’s get more up close and personal with this line by line code. 1. Declaration and Instantiation of Array Int a[] = new int[5]; The declaration is making an array named a of type int

How to create Array program in java Read More »

How to create Hashtable program in java

Step-by-Step Explanation: Let’s go through the code step by step: 1. Importing Required Classes: Statement in Interpreter import java.util.*; Package imported: java.util.* This package contains classes and interfaces for the following utilities: Hashtable, Map.Entry, Iterator, etc. are used in a

How to create Hashtable program in java Read More »

How to create TreeMap program in java

Step-by-Step Explanation: Let’s understand the code in detail, along with the output that is to be generated. Let’s follow step by step. 1. Importing Required Classes: import java.util.*; The java.util.* package is imported because various utility classes like TreeMap, Map.Entry

How to create TreeMap program in java Read More »

How to create LinkedHashMap program in java

Step-by-Step Explanation 1. importing the necessary Classes import java.util.*; To support using classes that are in utility library of java such as LinkedHashMap as well as its nested class   Map.Entry by importing the necessary package. 2. Class Declaration class

How to create LinkedHashMap program in java Read More »

How to create HashMap using map interface program in java

Step-by-Step Explanation: 1. Importing the Necessary Classes: import java.util.*; This line imports the classes from the java.util package. In this case, we will require the Map, HashMap, and Map. Entry classes to use the map and iterate over its entries.

How to create HashMap using map interface program in java Read More »

How to create PriorityQueue program in java

Step-by-Step Explanation: 1. Importing Required Classes:  import java.util.*;  This line imports necessary classes from the java.util package, including PriorityQueue and Iterator. 2. Class Declaration: class PriorityQueue_TechSarvam { A class PriorityQueue_TechSarvam is declared. This class defines the main() method from where

How to create PriorityQueue program in java Read More »

How to create TreeSet program in java

Step-by-Step Explanation: 1. Importing Required Classes: import java.util.*; This line imports necessary classes from the java.util package. It is required to use classes like TreeSet and Iterator. 2. Class Declaration: class TreeSet_TechSarvam { The class TreeSet_TechSarvam defines that holds the

How to create TreeSet program in java Read More »

How to create LinkedHashSet program in java

Step-by-Step Explanation: 1. Imported Package: import java.util.*; It has imported classes that are from java.util, so LinkedHashSet, Iterator etc. 2. Declaring Class class LinkedHashSet_TechSarvam { Declares a class linked to LinkedHashSet_TechSarvam, which has included the main method. It will be

How to create LinkedHashSet program in java Read More »

How to create Hashset program in java

Step-by-Step Explanation: 1. Importing Required Package: import java.util.*; 2. Class Declaration: class TestCollection9 { For the class TestCollection9, it has a main() method. This is how Java programs start. 3. Main Method: public static void main(String args[]) { This is

How to create Hashset program in java Read More »

How to ArrayList using list interface program in java

Step-by-Step Explanation: 1. Class Declaration (Book):  class Book {       int id;       String name, author, publisher;       int quantity; public Book(int id, String name, String author, String publisher, int quantity) {           this.id = id;           this.name = name;           this.author = author;} this.publisher =

How to ArrayList using list interface program in java Read More »

How to create LinkedList program in java

Step-by-Step Explanation: 1. Class Declaration: public class LinkedList_TechSarvam { The program consists of a main class named LinkedList_TechSarvam, which would be used to show how a LinkedList is implemented and how elements could be iterated over with an iterator. 2.

How to create LinkedList program in java Read More »

Create ArrayList program in java

Step-by-Step Explanation: 1.  Class Declaration:   class Arrylist_TechSarvam { A class called Arrylist_TechSarvam is declared. This class will contain the code for operating an ArrayList. 2.  Main Method:     public static void main(String args[]) { The main() method is where the entrance

Create ArrayList program in java Read More »

How to convert string to date in java program

Step-by-Step Explanation 1. Class Declaration: public class StringToDateExample1 { The class StringToDateExample1 is declared. This class will handle converting various date strings into Date objects. 2. Main Method: public static void main(String[] args) throws Exception { The main() method is

How to convert string to date in java program Read More »

How to convert string to double in java program

Explanation for the above code step-by-step 1. Class Declaration: private class StringToFloatExample { Declares the class StringToFloatExample. This is the main class that contains the logic for converting a string to a float. 2. Main Method: public static void main(String

How to convert string to double in java program Read More »

How to convert string to float in java

Explanation for the above code step-by-step 1. Class Declaration: private class StringToFloatExample { Declares the class StringToFloatExample. This is the main class that contains the logic for converting a string to a float. 2. Main Method: public static void main(String

How to convert string to float in java Read More »

How to convert string to long in java

Step-by-Step Explanation 1.  Class Declaration: The declaration of class StringToLongExample. This is the main class, with the conversion logic of the string to long. 2.  Main Method: 3. Declaring Strings: String s = “9990449935”; 4. Converting String to Long: long

How to convert string to long in java Read More »

How to convert integer to string in java program

Step-by-Step Explanation 1. Class Declaration: public class IntToStringExample1 { The class IntToStringExample1 is declared. This class contains the main method where the program logic resides. 2. Main Method: public static void main(String args[]) { The main() method is the entry

How to convert integer to string in java program Read More »

How to convert string to integer in java program

Step-by-Step Explanation 1. Class Declaration: public class StringToIntExample { The class StringToIntExample is declared. This is the main class containing the main method where the logic of the program resides. 2. Main Method: public static void main(String args[]) { The

How to convert string to integer in java program Read More »

How to create Swing program in java

Step-by-Step Explanation 1. Import Statement: import javax.swing.*; This import statement brings into the program javax.swing.* package. This package brings in a myriad of Swing components such as JFrame, JButton, JTextArea, JButton, JTextField etc Swing components are basically used to generate

How to create Swing program in java Read More »

How to dropdown in AWT program in java

This program discusses how to employ the Choice class with Java’s Abstract Window Toolkit. It creates an application with an easy GUI whose dropdown menu features several items in it. Step-by-Step Explanation 1. Import Statement: import java.awt.*; At the beginning,

How to dropdown in AWT program in java Read More »

How to add text area program in java

This Java program shows how a GUI application is created using the AWT library with a TextArea component. A window with a TextArea is constructed for a multi-line text input or display. Now, let us go through the program in

How to add text area program in java Read More »

How to add label in AWT program in java

This is a Java program that shows how to use Label components in a simple GUI using the AWT (Abstract Window Toolkit) library. The program creates a frame and adds two labels to it. Let’s break down the program step

How to add label in AWT program in java Read More »

How to create AWT program in java

This Java program creates a simple graphical user interface (GUI) with a button using the AWT (Abstract Window Toolkit) library. Let’s go through it step by step. 1. Importing AWT Package import java.awt.*; This imports the AWT package, which contains

How to create AWT program in java Read More »

How to get IP address from site URL using java program

1. Import Statements import java.io.*; import java.net.*; These are imports required for this program. Import java.net.* enables classes like InetAddress, which offers functionality to work with networking such as retrieval of IP address, whereas import java.io.* is done; however, no

How to get IP address from site URL using java program Read More »

How to get URL of site using java Programs

1. Import Statements import java.io.*; import java.net.*; These are the imports for the program. The java.net.* import brings in classes like URL that are required to handle URL operations. java.io.* is imported, although not used in this program explicitly. 2.

How to get URL of site using java Programs Read More »

How to read data from text file using java program

Step-by-Step Breakdown: 1. Importing FIileInputStream Class import java.io.FileInputStream; 2. Main Method: public class DataStreamExample { public static void main(String args[]) { The main method is the entry point for the execution of this program. 3. Creating FileInputStream Object: FileInputStream fin

How to read data from text file using java program Read More »

How to write data in text file using java program

This program shows how to write data into a file using Java’s FileOutputStream class. It writes the ASCII value of the number 65 to a file named testout.txt located on the D: drive. Step-by-Step Breakdown: 1. Importing FileOutputStream Class: import

How to write data in text file using java program Read More »

How to join thread in java program

This program demonstrates the usage of the join() method in Java, which is used to pause the execution of the current thread until the thread on which join() is called has finished its execution. Step-by-Step Breakdown: 1. Class Declaration and

How to join thread in java program Read More »

How to create Multithreading program in java

Inside the main() method: The above line declares a new instance of class Multi, t1 represents the thread. 4. Execution Flow: Important Notes: Output: The output of this program will be: thread is running. Explanation of the Output: Conclusion: It

How to create Multithreading program in java Read More »

How to check Regular expression in java Program

Step-by-Step Explanation 1. Importing the java.util.regex Package import java.util.regex.*; This program imports all classes from the java.util.regex package. The classes in this package are Pattern and Matcher, which enable matching strings according to regular expressions. 2. Class Declaration: public class

How to check Regular expression in java Program Read More »

How to execute Procedure in JDBC in java Program

Breakdown: 1. Imports Required Classes  import java.sql.*; The program declares necessary classes of the java.sql package. This package contains classes which are used in Java to deal with databases. 2. Class Declaration: public class Proc {  } The class Proc

How to execute Procedure in JDBC in java Program Read More »

How to execute Procedure in JDBC in java Program

Breakdown: 1. Imports Required Classes  import java.sql.*; The program declares necessary classes of the java.sql package. This package contains classes which are used in Java to deal with databases. 2. Class Declaration: public class Proc {  } The class Proc

How to execute Procedure in JDBC in java Program Read More »

How to insert image using JDBC in java Program

Step-by-Step Breakdown: 1. Importing Required Classes: import java.sql.*; import java.io.*; The java.sql package provides classes for database operations, while the java.io package provides classes to handle file operations (like FileInputStream). 2. Class Declaration: public class InsertImage { This declares the

How to insert image using JDBC in java Program Read More »

How to insert data in table using JDBC in java Program

Step by Step: 1. Importing Required Classes: import java.sql.*; The java.sql package is being imported. Classes like Connection, Statement, PreparedStatement, etc are being used in order to talk to a database. 2. Class Declaration class InsertPrepared { In the above

How to insert data in table using JDBC in java Program Read More »

How to connect Database using java Program

Step-by-Step Breakdown: 1. Import Necessary Classes: import java.sql.*; The java.sql package is imported, which contains classes required for JDBC operations such as Connection, Statement, and ResultSet. 2. Class Declaration: class OracleCon{ The program is enclosed in a class called OracleCon.

How to connect Database using java Program Read More »

Bubble sort Program in java

10. Print the Sorted Array: System.out.println(“Sorted list of numbers”); for (c = 0; c < n; c++) System.out.println(array[c]); Once sorted, the program prints the sorted array by using a for loop. Example Input and Output: Input: Input number of integers

Bubble sort Program in java Read More »

Binary search Program in java

Explanation of the Binary Search Program:  This program demonstrates Binary Search for efficiently finding a given value in a sorted array. 1. Import Scanner Class: import java.util.Scanner; The Scanner class is imported to read user input from the console. 2.

Binary search Program in java Read More »

How to multiply two matrix in java Program

Step-by-Step Explanation: 1. Scanner Class Import: import java.util.Scanner; This imports the Scanner class, which the program will use to read user input. 2. Class and method Definition: class MatrixMultiplication {     public static void main(String args[]) 3. Declarations of Variables: int

How to multiply two matrix in java Program Read More »

How to create Multiple class in java Program

1. Defining Object for Computer Class:     Constructor of Computer class. 2. Instantiating Laptop Class: Laptop your = new Laptop(); instantiates the Laptop class. When new Laptop() is invoked, it calls the Laptop class’s constructor, printing the following output: Constructor

How to create Multiple class in java Program Read More »

Linear search Program in java

Step-by-Step Explanation of the Program: This program uses Linear Search to find a particular number in an array, which the user will input. 1. Import the Scanner Class:  import java.util.Scanner;  Import this class to use the scanner for console input

Linear search Program in java Read More »

How to open notepad in java Program

Program Description: This is a Java program that invokes the Notepad application in Windows by using the Runtime.exec() method. The exec() method lets Java programs invoke system-level commands or programs. Step-by-Step Explanation 1. Importing the Classes Needed import java.util.*; import

How to open notepad in java Program Read More »

How to get own IP Address in java Program

Program Explanation: This Java program illustrates how to get the local IP address of the machine (computer) on which the program is running using the InetAddress class from the java.net package. Step-by-Step Breakdown: 1. Importing the InetAddress class: import java.net.InetAddress;

How to get own IP Address in java Program Read More »

How perform garbage collection in java Program

Program Explanation: GarbageCollection This program shows how to manually call garbage collection in Java using the Runtime class. It also shows how to check the free memory in the JVM before and after garbage collection. Step-by-Step Breakdown: 1. Importing the

How perform garbage collection in java Program Read More »

How to Generate random number in java Program

Step-by-Step Explanation: 1. Importing Random class: import java.util.*; The Random class is in the java.util package, so we import it to use it in our program. 2. Class Definition: We define a class named RandomNumbers. The class contains the main

How to Generate random number in java Program Read More »

How to Date format in java Program

Program Explanation:  This program demonstrates how to use the SimpleDateFormat class in Java to format the current date into different patterns. Let’s go through the program step by step:  Explanation of Key Elements: 1. Date date = new Date();: 2.

How to Date format in java Program Read More »

How to SQL Date in java Program

Explanation Step by step: 1. import java.sql.Date; This imports the java.sql.Date class from the java.sql package. The class java.sql.Date is used to represent SQL DATE values, which contain only the year, month, and day but not time. 2. public class

How to SQL Date in java Program Read More »

How to print date and time in java Program

1. SQLDateExample Program This program is going to give an example of working with the use of the type java.sql.Date in dealing with SQL DATE types in Java. public class SQLDateExample { Public Static Void main(String[] Args) { long millis

How to print date and time in java Program Read More »

How to create Interface in java Program

Program Explanation in Steps: This is a Java program that demonstrates how interfaces work. It includes the declaration of an interface called Info, the declaration of a class Simple that implements this interface, and it displays how methods of an

How to create Interface in java Program Read More »

Advantage of Finally in Exception Handling java Program

Program Explanation Step-by-Step: This Java program illustrates the use of try, catch and finally blocks. It tries to get a large array and handle exceptions if encountered during allocation. The final block ensures that some code will always be executed,

Advantage of Finally in Exception Handling java Program Read More »

How to throw exception in java Program

Step-by-Step Explanation of the Program: This Java program demonstrates how to manually throw an exception in Java, using the keyword throw statement when a certain condition is met. For this example, it checks if a person’s age is less than

How to throw exception in java Program Read More »

Exception Handling java Program

Step-by-Step Explanation of the Program: This program is an example of exception handling in Java, where the program handles the ArithmeticException while performing division of two integers taken as input from the user and handles the situation when it is

Exception Handling java Program Read More »

How to create constructor overloading in java Program

1. Class Declaration: public class Language {    String name; A class called Language is defined by an instance variable name of type String. This variable will store the name of the programming language. 2. Constructors: Language() {    System.out.println(“Constructor method called.”);

How to create constructor overloading in java Program Read More »

How to create constructor in java Program

1. Class Declaration: class Programming { An empty class named Programming is declared. 2. Constructor Method: Programming() {     System.out.println(“Constructor method called.”); } 3. Main Method (Program Execution Starts Here): public static void main(String[] args) { The entry point of the

How to create constructor in java Program Read More »

How to create Multiple class in java Program

Step-by-Step Explanation: This software is divided into two classes: Computer and Laptop. In this example, it explains how inheritance is implemented in Java through the Laptop class which is a subclass of Computer. Class: Computer class Computer {    Computer() {

How to create Multiple class in java Program Read More »

Difference between Static and Instance method working in java Program

Step-by-Step Explanation: 1. Class Declaration: 2. Static Method Call (display()) display(); // calling without object    Programming is amazing. 3. Non-Static Method Call (show()): Difference t = new Difference();  t.show(); // calling using object    Java is awesome.   4. Method

Difference between Static and Instance method working in java Program Read More »

How Static block working in java Program

This Java program demonstrates two uses of static blocks: 1. In the first example, a static block is used to indicate the execution order for the main method. 2. In the second example, a static block is used to determine

How Static block working in java Program Read More »

Find Length, Concatenate and Replace String in Java Program

Step-by-Step Breakdown: 1. Class and Main Method Declaration: class StringMethods {     public static void main(String args[]) { A class StringMethods is declared. The main is the point at which the program gets executed. 2. String Initialization: int n; String s

Find Length, Concatenate and Replace String in Java Program Read More »

How to create method in java Program

Step-by-Step Explanation: 1. Class Declaration: class Methods { ‘Class Methods’ is declared with the existence of a constructor, a static method, non-static method, and the main method. 2. Constructor Method: Methods() System.out.println(“Constructor method is called when an object of it’s

How to create method in java Program Read More »

How to convert all char in string lower case in java Program

Step-by-Step Breakdown: 1. Class and Method Declaration: public class StringLowerExample  {     public static void main(String args[])       { 2. String Initialization: String s1 = “TechSarvam by Rajendrasarvam HELLO stRIng”; 3. Using toLowerCase() Method: String s1lower = s1.toLowerCase(); The string s1lower after

How to convert all char in string lower case in java Program Read More »

Check Given No is palindrome or Not in java Program

First Method: Using Reverse String Comparison Let’s break down the first approach where the string is reversed and compared with the original string. 1. Class Definition: class Palindrome The class Palindrome is declared. Here, the main method will be defined.

Check Given No is palindrome or Not in java Program Read More »

How to remove space in string both end in java Program

Step-by-Step Breakdown: 1. Class and Method Declaration: public class StringTrimExample  {    public static void main(String args[])  { 2. String Declaration: String s1 = ” hello string\t”; 3. Print Without Using trim() System.out.println(s1 + “TechSarvam”); 4. Using trim() Method: System.out.println(s1.trim() +

How to remove space in string both end in java Program Read More »

How to split string in java Program

Step-by-Step Breakdown: 1. Class Declaration: public class SplitExample  {    public static void main(String args[])     { 2. String Declaration String s1 = “java string split method by TechSarvam”; 3. Using split() Method String[] words = s1.split(\\\\\\\\s); [java, string, split, method, by,

How to split string in java Program Read More »

How to replace string with another string in java Program

Step-by-Step Breakdown: 1. Class and Method Declaration: public class ReplaceAllExample2  {     public static void main(String args[])      { 2. String Declaration: String s1 = “My name is Rajendra. My name is Sarvam. My name is TechSarvam.”; A String variable s1 is

How to replace string with another string in java Program Read More »

How to use indesOf() in java Program

Step-by-Step Explanation 1. Class and Method Declaration: public class IndexOfExample  { public static void main(String args[])  { 2. String Declaration: String s1 = “this is index of example”; A string variable s1 is declared and initialized with value “this is

How to use indesOf() in java Program Read More »

How to string width with specific char in java Program

Step-by-Step Breakdown: 1.  Class and Main Method Declaration: class StringEndwith  {             public static void main(String args[])  { 2. Declaration of the String String s1 = “java by TechSarvam”; The variable s1 is declared and initialized with the string “java by

How to string width with specific char in java Program Read More »

How to compare 2 string in java Program

Here’s a step-by-step explanation of the program: 1. Class and Method Declaration: public class LastIndexOfExample {     public static void main(String args[]) {  2. String Declarations: String s1=”hello”; String s2=”hello”; String s3=”meklo”; String s4=”hemlo”; Four String variables are declared: 3. compareTo()

How to compare 2 string in java Program Read More »

How to get transpose of matrix in java Program

Step-by-Step Breakdown 1. Importing the Scanner Class: import java.util.Scanner; This imports the Scanner class to accept user input from the console. 2. Class and Main Method: class TransposeAMatrix {      public static void main(String args[]) The program has been encapsulated in

How to get transpose of matrix in java Program Read More »

How to multiply two matrix in java Program

Step-by-Step Explanation: 1. Scanner Class Import: import java.util.Scanner; This imports the Scanner class, which the program will use to read user input. 2. Class and method Definition: class MatrixMultiplication {     public static void main(String args[]) 3. Declarations of Variables: int

How to multiply two matrix in java Program Read More »

How to add two matrix in java Program

Step-by-Step Explanation: 1. Importing Scanner Class: import java.util.Scanner; This imports the Scanner class from java.util to read from the user. 2. Class Definition: class AddTwoMatrix A class AddTwoMatrix is declared that contains the main method from where the program execution

How to add two matrix in java Program Read More »

Print reverse string in java Program

Class 1: ReverseString (Manual Method) This class explains how one could reverse a string manually character by character using a for loop. Step-by-Step Explanation: 1. Importing Scanner Class:  import java.util.*; This imports the Scanner class, which is used to take

Print reverse string in java Program Read More »

Find All substring of string in java Program

Step-by-Step Explanation: 1. Import Scanner Class:    import java.util.Scanner; – The Scanner class is imported to permit input from the user through the console. 2. Class Definition:    class SubstringsOfAString    – A class called SubstringsOfAString is defined. In the class lies the

Find All substring of string in java Program Read More »

Print Floyd’s Triangle in java Program

Code Breakdown: 1. Importing Scanner Class: import java.util.Scanner; Scanner class is declared to scan for the input from the user. 2. Class Definition: class FloydTriangle Here, a class FloydTriangle is declared. The class contains the main method where the execution

Print Floyd’s Triangle in java Program Read More »

← Previous 1 … 9 10 11 … 16 Next →

Join Our 7452 Happy Students​ Today!

Start Learning

Copyright © 2026

WhatsApp US