Swap 2 values & bubble sort in Java

Q1. Can you write an algorithm to swap two values? A1.

Swapping without a temp variable

Note: also try with * and \ Using bitwise “xor”

Q2. Can you write code to bubble sort { 30, 12,…


300+ Java & Big Data Interview FAQs

16+ Java Key Areas Interview Q&As

800+ Java Interview Q&As

300+ Java & Big Data Tutorials

Top