Basic Exercises Part-I

Basic Exercises Part-I Write a Java program to print ‘Hello’ on screen and then print your name on a separate line.Expected Output :HelloGaurav Dixit Click me to see the solution Write a Java program to print the sum of two numbers.Test Data:74 + 36Expected Output :110 Click me to see the solution Write a Java … Read more

Java Exercises

Java Practice Exercises with Solution Basic Exercises Part-IBasic Exercises Part-IIData Types ExercisesConditional Statement ExercisesArrayStringDate TimeMethodsNumbersInput-Output-File-SystemCollectionMathSortingSearchRegular Expression

Binary Search Algorithm

Binary Search Algorithm Binary Search is an efficient algorithm for finding an element in a sorted array by continuously chopping the search area in half. Why Binary Search? In Technical Interview you might be given a question like In Given Sorted Array, write a function that returns the index for a given element. Now, an … Read more