UpdateGadh

UPDATEGADH.COM

Category Java Notes

Java Notes || Programing Notes

Java Collections

Java Collection

Welcome to Day 11 of our Java Collection journey! Today, we’ll delve into one of the most fundamental aspects of Java – the Collections Framework. The Java Collection Framework provides…

Java Interview Question

Q1.Write a Program to swap two numbers in Java

Write a Program to swap two numbers in Java using a third variable Example : Let’s Swap: Numbers 1 and 2  Let x= 1, y= 2  Swapping Logic:  take a temp variable =temptemp=x=1;x=y=2;y=temp=1After swapping:  x= 2, y = 1 Java Coda Algorithm STEP 1: STARTSTEP 2: DEFINE…