java codes run

AllInterview QuestionsJava Interview

Java Programming Interview Questions

Java Programming Interview Questions
96.
Check if a given string is palindrome using recursion.
97.
Write a Java Program to print Fibonacci Series using Recursion.
98.
Write a Java program to check if the two strings are anagrams.
99.
Write a Java Program to find the factorial of a given number.
100.
Given an array of non-duplicating numbers from 1 to n where one number is missing, write an efficient java program to find that missing number.
101.
Write a Java Program to check if any number is a magic number or not. A number is said to be a magic number if after doing sum of digits in each step and inturn doing sum of digits of that sum, the ultimate result (when there is only one digit left) is 1.
102.
Write a Java program to create and throw custom exceptions.
103.
Write a Java program to reverse a string.
104.
Write a Java program to rotate arrays 90 degree clockwise by taking matrices from user input.
105.
Write a java program to check if any number given as input is the sum of 2 prime numbers.
106.
Write a Java program for solving the Tower of Hanoi Problem.
107.
Implement Binary Search in Java using recursion.

Read More
Interview QuestionsJavaJava Interview

Java 8 Interview Questions for Freshers

Java 8 Interview Questions for Freshers
1.
Describe the newly added features in Java 8?
2.
In which programming paradigm Java 8 falls?
3.
What are the significant advantages of Java 8?
4.
What is MetaSpace? How does it differ from PermGen?
5.
What are functional or SAM interfaces?
6.
Can a functional interface extend/inherit another interface?
7.
What is the default method, and why is it required?
8.
What are static methods in Interfaces?
9.
What are some standard Java pre-defined functional interfaces?
10.
What are the various categories of pre-defined function interfaces?
11.
What is the lambda expression in Java and How does a lambda expression relate to a functional interface?
Java 8 Interview Questions for Experienced
12.
What is the basic structure/syntax of a lambda expression?
13.
What are the features of a lambda expression?
14.
What is a type interface?
15.
What are the types and common ways to use lambda expressions?
16.
In Java 8, what is Method Reference?
17.
What does the String::ValueOf expression mean?
18.
What is an Optional class?
19.
What are the advantages of using the Optional class?
20.
What are Java 8 streams?
21.
What are the main components of a Stream?
22.
What are the sources of data objects a Stream can process?
23.
What are Intermediate and Terminal operations?
24.
What are the most commonly used Intermediate operations?
25.
What is the stateful intermediate operation? Give some examples of stateful intermediate operations.
26.
What is the most common type of Terminal operations?
27.
What is the difference between findFirst() and findAny()?
28.
How are Collections different from Stream?
29.
What is the feature of the new Date and Time API in Java 8?
30.
What are the important packages for the new Data and Time API?
31.
Explain with example, LocalDate, LocalTime, and LocalDateTime APIs.
32.
Define Nashorn in Java 8
33.
What is the use of JJS in Java 8?

Read More
Exit mobile version