0% found this document useful (0 votes)
4 views

QuestionsInterview

Java Interview Questions and answers
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

QuestionsInterview

Java Interview Questions and answers
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Interview Questions:

Write the code:


1.Assume a Large files :1M entries
you must find out top 20 most occurred words in the file
For Example, in this sentence: the sun rises in the east the sun sunsets in the
west the boy's name is x
top 3
sun
the
in
2. In a class there are students Math, phy, chem
Find out top 10 marks with student name in physics, maths and chem
3.What is no Sequel DB. What are the applications? Why is it used?
4.What is Kafka? How did Kafka help in your project?
5.How good are you at writing sequel query. How will you rate yourself out of 5?
6. List all the clauses in Sequel query?
7.Order of execution of these clauses?
8.How good are you at writing java coding. How will you rate yourself out of 5?
9.Suppose there are 4 friends who have been on an outing. And each of them has
spent some amount of money
Calculate who owes how much money to another person?
a) Choose data structure where you are going to store the data
b) Logic to calculate sum, each person expenditure and see who has spent more
etc. Write overall logic
-----------------------------------------------------------------
1.There are students who belong to some class. They are collecting some funds.
Input: Student: Id, std Fund(rupee)
Number of Class = n
Each class shud have X fund.

Find out classes where total fund is less than x, find out classes where total fund
is greater than x
Find out how many additional funds needed so that each class can have X funds

Example:
Class 5: 900 : -100
Class 6:800 : -200
Class 7:1100 :+100
200 additional funds needed so that each class can have 1000rs fund
-----------------------------------------------------------------------------------
-
1.Technologies you have worked and your achievements in project
2.Let's say there is a string, and the values will be 12345
Can you write the logic and get the sum of these digits.
3.There is a list of denominations: 5rs, 10rs 20rs 50rs, 100rs, 200rs, 500rs
Input is 80rs
To withdraw 80rs, a) you can give 8 notes of 10rs
b)4 notes of 20rs
c)1 note of 50rs, 3 note of 10rs
d)1 note of 50rs, 1 note of 20 rs, 1 note of 10rs
Can you write the logic to find minimum number of denominations out of these
cominations (Best possible option)
4. What is the latest version of Java you have used?
5. What are the new features in Java 21, which is not there in java 8
6. What is Kafka? What are the applications?
7. Where have you used Kafka in your application. How did Kafka help you?

You might also like