Yahoo India Web Search

Search results

    • Write a Java Program to reverse a string without using String inbuilt function. Answer: Here, we are initializing a string variable str and making use of the string builder class.
    • Write a Java Program to reverse a string without using String inbuilt function reverse(). Answer: There are several ways with which you can reverse your string if you are allowed to use the other string inbuilt functions.
    • Write a Java Program to swap two numbers using the third variable. Answer: In this example, we have made use of the Scanner class to declare an object with a predefined standard input object.
    • Write a Java Program to swap two numbers without using the third variable. Answer: Rest all things will be the same as the above program. Only the logic will change.
  1. May 16, 2023 · Java programs to print numbers or characters or any other symbols in different shapes or patterns are one of the frequently asked Java interview coding questions for freshers. Because, they test the logical ability as well as coding skills of a candidate.

  2. Java is a popular programming language, and questions related to Java are commonly encountered in technical interviews. Here's a compilation of Java programs that are frequently asked in interviews, ranging from basics to more challenging ones.

  3. Nov 23, 2022 · This collection of 50 Java programming interview questions included questions from beginner to expert level, to help you prepare for your interview. Recommended Reading: Java Tricky Interview Questions; Java String Interview Questions

  4. Mar 11, 2024 · The following article will cover all the popular Core Java interview questions, String Handling interview questions, Java 8 interview questions, Java multithreading interview questions, Java OOPs interview questions, Java exception handling interview questions, collections interview questions, and some frequently asked Java coding interview ...

  5. Aug 26, 2024 · Here is a list of Java programs commonly asked about during interviews: 1. Fibonacci series. Program to display any given number of integers of the Fibonacci series. In the Fibonacci series, each number is equal to the sum of the two numbers that precede it. 2. Checking for prime number.

  6. People also ask

  7. Sep 3, 2024 · Here, we cover everything, including core Java concepts, Object-Oriented Programming (OOP), multithreading, exception handling, design patterns, Java Collections, and more, that will surely help you to crack Java interviews.