Cyient Java Interview Questions

#1 Question

What is meant by Data Hiding/Encapsulation?

#2 Question

Differentiate call by value and call by reference ?

Call by value: 
A process in which the values of the actual parameters sent by the calling function are copied to the formal parameters of the called function.

Call by reference: 
A process in which the parameters of a calling function are passed to the parameters of the called function using an address.

#3 Question

What is difference overloading and overriding?

#4 Question

What is the difference between an interface and an abstract class?

#5 Question

Write a program to check for a prime number in Java?

#6 Question

List types of storage classes in java?

#7 Question

Write a java program to generate fibonacci series ?

#8 Question

How does the garbage collector works in Java?

#9 Question

What is difference between throw and throws ?

#10 Question

Write a program to check String is Palindrome without using loop?

#11 Question

What is used of static keyword in Java?

#12 Question

What is difference between java and c?

#13 Question

Why is string buffer better than string ?

#14 Question

Explain exception chaining in Java?

#15 Question

What is OutOfMemoryError in Java?

#16 Question

What is difference between final and finally in Java?

#17 Question

What is Exception in Java?

#18 Question

How to write custom exception in Java?

#19 Question

How can you catch multiple exceptions in java?

#20 Question

What is the difference between a checked and an unchecked exception?

#21 Question

What are meta-annotations?

Ask a Question