Mastering Custom Sorting in Java: Comparator Made SimpleIf you’ve ever needed to sort a list of objects in Java say, a list of students by marks, names, or roll numbers you’ve likely bumped into Comparator. It’s one of the most powerful (and often underrated) tools in the Java Collections framework. Wha...May 17, 2025·2 min read
Demonstration of passing object reference by value as parameter in java methods .Jul 4, 2024·2 min read
Passing an object as parameter to method in javaIn java there is only one way to pass parameter which is pass by value . It is applicable in both cases , primitive type(int , float ,etc) as well as in object reference . In both we pass copy of object reference(memory address of object). public cla...Jul 4, 2024·1 min read
Method in Java ..(functions in c , c++) . Main method .public static void main( String args[]){} This is main method of Java means starting point of program , this thing everyone knows ,let`s deep dive into Methods. Methods ( Functions in c and c++) is a block of cod or collection of statement or a set o...Jul 4, 2024·2 min read
Basics of java (what i have learned )A Very Basic thing about Java that i think everybody knows who started learning java is that, Java is platform independent language, which means it generate byte code which runs on every platform (macos ,windows , linux ) but what i learn is java`s b...Jun 25, 2024·3 min read