i
Cognizant
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
I applied via Campus Placement and was interviewed before May 2023. There were 3 interview rounds.
Core Java
DSA
MySQL
Aptitude
posted on 15 Feb 2022
1)Driffience between Abstract class &
Interface.
-abstract class
represents property
&
behaviour of an object
whereas
interface
represents
behaviour
of an object.
2)Driffience between equal() vs ==operator.
equal() is
an object class method
whereas
equal() of string class
override
the object class equal().
3)can we use pointer's in Java.
Not explicitly but implicitly we can use pointer's in java.
Dynamic m/m refers with help of pointer's but java does not support the pointer's.
when we r creating an object in java refrence varaible of an object holds the identity that is nothing but an implicit pointer that holds an unique identity of an object.
4)How we can print object ID.
-Object ID printed with help of object class which is a service provider class having 9().
5)what is object class.
-it is a super class of all predefined & userdefined class.
6)Write a prog to get name of main thread in java.
-class A
{
psvm(String args [])
{
s.o.pln(Thread.currentThread().getName());
}
}
7)length vs length()
-length
is
data menmber
of proxy class
whereas
length() is a string class().
JVM is an abstract machine that executes Java bytecode.
JVM stands for Java Virtual Machine.
It is responsible for interpreting and executing Java bytecode.
JVM provides platform independence to Java programs.
It has its own memory management system and garbage collector.
JVM can be implemented on different operating systems.
Examples of JVM languages include Java, Kotlin, and Scala.
I applied via Company Website and was interviewed before May 2022. There were 3 interview rounds.
General aptitude, logical reasoning, english and Pseudocodes
I applied via Approached by company and was interviewed in Dec 2021. There were 2 interview rounds.
posted on 29 May 2024
Find duplicate characters in a given array of strings
Iterate through each string in the array
For each string, iterate through each character and store the count in a hashmap
If the count of any character is greater than 1, it is a duplicate
Code for REST API using Spring Boot with annotations
Use @RestController annotation to define the class as a REST controller
Use @RequestMapping annotation to map HTTP requests to handler methods
Use @GetMapping, @PostMapping, @PutMapping, @DeleteMapping annotations for specific HTTP methods
Use @PathVariable annotation to extract values from the URI
Use @RequestBody annotation to bind HTTP request body to a method paramete
I applied via Naukri.com and was interviewed in Aug 2022. There were 2 interview rounds.
I applied via Naukri.com and was interviewed in Sep 2022. There were 3 interview rounds.
Date -2 march 2023 ,Time 2-5pm , topics-Java
I appeared for an interview in Feb 2022.
I applied via Naukri.com and was interviewed in Apr 2024. There were 3 interview rounds.
SAGA pattern is a design pattern used in microservices architecture to manage distributed transactions.
SAGA pattern breaks down a long-running transaction into a series of smaller, independent transactions.
Each step in the SAGA pattern is a separate service that communicates with other services through events.
If a step fails, compensating transactions are executed to rollback the changes made by previous steps.
Example:...
API stands for Application Programming Interface. It defines the methods and data formats that applications can use to communicate with each other.
API is a set of rules and protocols that allows different software applications to communicate with each other.
To secure an API, you can use authentication methods like OAuth, API keys, or JWT tokens.
Implementing encryption (HTTPS) and rate limiting can also enhance API secu...
based on 1 interview
Interview experience
based on 12 reviews
Rating in categories
Associate
72.4k
salaries
| ₹5.1 L/yr - ₹16 L/yr |
Programmer Analyst
55.6k
salaries
| ₹2.4 L/yr - ₹9.3 L/yr |
Senior Associate
50.3k
salaries
| ₹9 L/yr - ₹28.6 L/yr |
Senior Processing Executive
29.1k
salaries
| ₹1.8 L/yr - ₹9.2 L/yr |
Technical Lead
17.7k
salaries
| ₹6 L/yr - ₹25 L/yr |
TCS
Infosys
Wipro
Accenture