# Sorting Arrays in Java – Tutorial | Selection Sort and Bubble Sort

///Sorting Arrays in Java – Tutorial | Selection Sort and Bubble Sort

## Sorting Arrays in Java – Tutorial | Selection Sort and Bubble Sort

Sorting is a process in which we arrange the elements of an array either in ascending or in descending order.
There are generally two types of Sorting in Java, they are :
1. Selction Sorting
2. Bubble Sorting

Hey There!
Its Teja here!
This video is a Java tutorial!
In this video, I am going to teach you about Sorting in Java.

For More Java Programs, visit :

If you have any doubts regarding this, feel free to comment below.

Visit my website :

Email ID : anonymoushacker156@gmail.com

SUBSCRIBE for more videos!
Thanks For Watching!
Cheers!

-~-~~-~~~-~~-~-
Please watch: “How the INTERNET actually works? ”

-~-~~-~~~-~~-~-

source

By |2020-02-06T01:36:47+00:00February 6th, 2020|Java Video Tutorials|35 Comments

1. Tech Raj February 6, 2020 at 1:36 am - Reply

I want to notify everyone that there is a mistake in this video. The Bubble Sort algorithm explained in this video is incorrect. I will try to make an updated video correcting all the mistakes as soon as possible. Sorry for the blunder in this video!

2. yash shukla February 6, 2020 at 1:36 am - Reply

Sir why have u used d loop in last please tell me.

3. Ravindra Tech Guru ji February 6, 2020 at 1:36 am - Reply

You are ossum sir

4. SaikiKusou -chan February 6, 2020 at 1:36 am - Reply

you have too many variables that has been used.

5. Benedict 4 Generation February 6, 2020 at 1:36 am - Reply

the
int temp1 = b;
int temp2 = a;
was unnecessary
it will work just fine w/out that variables;

6. sendil kumar February 6, 2020 at 1:36 am - Reply

If 1 goes to the 0th position. How can you consider 1 in the 3rd position to compare with other numbers? Shouldn't you compare the other numbers with 2 cause after swapping. 2 comes in the place of 1 and 1 is in the 0th position

7. Rathish Rts February 6, 2020 at 1:36 am - Reply

bubble sort is totally wrong..there is no difference between bubble sort and selection sort in this video

It is very appropriate

9. F3RDI February 6, 2020 at 1:36 am - Reply

Honestly you should delete this video, so many mistakes it will do damage to beginners trying to learn.
So many unnecessary variables declared and you shouldn't be using the length as a int you should use array.length then if you use different data it will accommodate.

10. Attaullah khan February 6, 2020 at 1:36 am - Reply

i didn't get the difference between both the techniques.
i found both are same

11. Arpan Singh February 6, 2020 at 1:36 am - Reply

Thank you so much sir really very helpfull

12. harshil garg February 6, 2020 at 1:36 am - Reply

One of the most pathetic explanation……Please stop making stupid videos like these and misguiding people

13. Greetings Mortal February 6, 2020 at 1:36 am - Reply

how fake can someones accent be?

14. Rafeeq Hashmi February 6, 2020 at 1:36 am - Reply

Hi sir
Can u explain switch case programme
Character function
Math function

15. Shiny Johny February 6, 2020 at 1:36 am - Reply

What's the difference between the ??

16. Neha mangla February 6, 2020 at 1:36 am - Reply

Selection sort program is wrong this program is not executed compiler show Array out of bound exception

17. hasanul banna February 6, 2020 at 1:36 am - Reply

Yea

18. mohammed el tawel February 6, 2020 at 1:36 am - Reply

شكرا

very bad teaching, don't type only please explain it. we are not computer so we will understood automatically. please explain it

21. clasher 0091 February 6, 2020 at 1:36 am - Reply

I understand that both of them are same

22. Bhaben Biswas February 6, 2020 at 1:36 am - Reply

I did not understand the difference between bubble sort and selection sort

23. Nayana R February 6, 2020 at 1:36 am - Reply

Wat the hell u did … I watched the complete vedio and wasted my time learning wrong thing… Pls upload the vedio after confirming the right…. Idiot

24. Anamika Das February 6, 2020 at 1:36 am - Reply

I am extremely astonished why did you not edited this video ? You should have explained the algorithm of both the sorting manually first and then should have explained the code. Got any idea that you have used two different techniques to explain selection sort only and not bubble sort?

25. Ramana Ntr February 6, 2020 at 1:36 am - Reply

Sir… even for selection sorting you used the technique of bubble sort…

26. vandana jamwal February 6, 2020 at 1:36 am - Reply

U just wrote the bubble sort in case of selection sort……

27. Sarit Deb February 6, 2020 at 1:36 am - Reply

The selection sort program is wrong..it is of bubble sort

28. Avneet Arora February 6, 2020 at 1:36 am - Reply

The explanation of Selection Sort is Right, but the code is wrong. It is of Bubble Sort.
Please correct it or remove the Video man as it will just confuse people.

29. Smart Programming February 6, 2020 at 1:36 am - Reply

nice one sir, keep it up 👍👍

Useless video not at correct syntax

31. Amber Tripathi February 6, 2020 at 1:36 am - Reply

Genuine window Kharidlo bhai

32. Rashid rey siddiqui February 6, 2020 at 1:36 am - Reply

Nepali haina bhai tu?