Top 10 Java Coding Questions to Crack Your Next Interview | Java Interview Preparation

Поділитися
Вставка
  • Опубліковано 23 лис 2024

КОМЕНТАРІ • 17

  • @Pankaj82
    @Pankaj82 Місяць тому +3

    Please cover Top 100 java coding interview questions

  • @beast2218
    @beast2218 12 днів тому

    Please make a video on covering top 100 questions on DSA.

  • @homelander_3008
    @homelander_3008 3 дні тому

    i will never give up sir

  • @toshyamg
    @toshyamg 24 дні тому

    Hi Happy, can you please. Prepare notes for design, architecture ( covering design principles, Patterns, architectural Patterns.. etc) . Eagerly waiting for the same.

  • @ninsenglishclasses4374
    @ninsenglishclasses4374 Місяць тому +1

    never give up

  • @mahalingamsunthar7602
    @mahalingamsunthar7602 Місяць тому

    Please upload React 19 new feautures with realtime project
    Thanks for your way teaching concepts and interview Q&A for React,Java,Angular.
    Heartfull congratulation for your way of teaching and videos.

  • @04_itsanskaragarwal73
    @04_itsanskaragarwal73 5 днів тому

    Wonderful

  • @RupeshYadav-kt5dv
    @RupeshYadav-kt5dv Місяць тому +1

    Thanks a lot 🙏 🙏 🙏

  • @sharanimomlifestyle
    @sharanimomlifestyle Місяць тому

    Hi sir my husband is working in production company since from 2016 now he has an idea to switch to IT industry please let me know is it advisable if so please let me know which technology he can opt

  • @lokeshamanchi5834
    @lokeshamanchi5834 Місяць тому

    Never Give Up

  • @ConquerorProgramming.
    @ConquerorProgramming. Місяць тому

    C# Coding sirrrr one video

  • @sanyamsharma8827
    @sanyamsharma8827 Місяць тому

    Hello sir
    Can you share your linked in so we can connect there

  • @ashak4440
    @ashak4440 Місяць тому

    Please post for c# sir

  • @biswajeet9826
    @biswajeet9826 Місяць тому

    import java.util.Arrays;
    import java.util.Collections;
    import java.util.List;
    public class LargestNumberFinder {
    public static void main(String[] args) {
    Integer[] numbers = {34, 67, 23, 89, 12, 90, 55};
    List numberList = Arrays.asList(numbers);
    int largest = Collections.max(numberList);
    System.out.println("The largest number is: " + largest);
    }
    }

  • @biswajeet9826
    @biswajeet9826 Місяць тому

    package Interview.Misc_Practice;
    import java.util.Arrays;
    import java.util.Scanner;
    public class MergeAndSortArrays {
    public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    // Input size for the first array
    System.out.println("How long do you want the first(1) array to be: ");
    int n1 = sc.nextInt();
    int[] arr1 = new int[n1];
    // Input size for the second array
    System.out.println("How long do you want the second(2) array to be: ");
    int n2 = sc.nextInt();
    int[] arr2 = new int[n2];
    // Input values for array 1
    for (int i = 0; i < arr1.length; i++) {
    System.out.println("Enter the value for array1 at index " + i + ": ");
    arr1[i] = sc.nextInt();
    }
    // Input values for array 2
    for (int i = 0; i < arr2.length; i++) {
    System.out.println("Enter the value for array2 at index " + i + ": ");
    arr2[i] = sc.nextInt();
    }
    // Call the method to merge and sort the arrays after input
    int[] mergedArray = mergeAndSortArrays(arr1, arr2);
    // Print the merged and sorted array
    System.out.println("Merged and sorted array: " + Arrays.toString(mergedArray));
    }
    // This method merges two arrays and sorts the result
    public static int[] mergeAndSortArrays(int[] arr1, int[] arr2) {
    int len1 = arr1.length;
    int len2 = arr2.length;
    // Create a new array that can hold both input arrays
    int[] mergedArray = new int[len1 + len2];
    // Copy elements from arr1 to mergedArray
    for (int i = 0; i < len1; i++) {
    mergedArray[i] = arr1[i];
    }
    // Copy elements from arr2 to mergedArray, starting after arr1's elements
    for (int i = 0; i < len2; i++) {
    mergedArray[len1 + i] = arr2[i]; // Fix the index to correctly place arr2 elements
    }
    // Sort the merged array
    Arrays.sort(mergedArray);
    // Return the sorted merged array
    return mergedArray;
    }
    }

  • @biswajeet9826
    @biswajeet9826 Місяць тому

    package Interview.Misc_Practice;
    import java.util.Arrays;
    import java.util.Scanner;
    public class MergeAndSortArrays_2_Repeat_Practice {
    public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    // First Array creation and filling
    System.out.println("How long the first array(1) be: ");
    int n1 = sc.nextInt();
    int[] array1 = new int[n1];
    for (int i = 0;i