---Advertisement---

Java Interview Questions-Cognizant(6.8 Years)

By Siva

Updated On:

---Advertisement---

UI:

1.How angular application start

2.Write a piece of code how to fetch the data from backend API and show in UI

3.What is use of standalone components

4.How standalone component differ from normal component

5.How components will communicate with each other

6.What is lazyloading in Angular

7.Which version of java u r using and what features u observed.

8.What is stores in angular

Java:

1.What all Java8 features u used

2.What is Optionl and why

3.What all are methods available in Optional

4.What is streams and Why

5.Print the duplicate values from this array using streams, {20,30,20,70,90,89,89,20,30}

6.What is boxing()

7.What is String constant pool and how it works

8.How many objects will be created for below code

String str1 =”Java”;

String str2 =”Java”;

9.What is flatMap

10.What is Immutable in Java and how to create Immutable class

11.How to create SingleTon class

12.HashMap vs ConcurrentHashMap

13.Fail-fast vs Fail-safe and examples

14.What is the use of transient keyword in java

15.What is the use of EnableAutoConfiguration annotation in springBoot

16.What all are annotations used in u r project related to SpringBoot and REST API

17.What annotations u use to handle the exceptions

18.What is the use of Sping Accuators

19.What is the use of Azure cloud

---Advertisement---

Leave a Comment