Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by Cactus Communications Team. If you also belong to the team, you can get access from here

Cactus Communications Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

Clear (1)

Cactus Communications Backend Java Developer Interview Questions and Answers

Updated 24 Oct 2024

Cactus Communications Backend Java Developer Interview Experiences

1 interview found

Backend Java Developer Interview Questions & Answers

user image Harshavardhan Dhole

posted on 24 Oct 2024

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. What is polymorphism?
  • Ans. 

    Polymorphism is the ability of a single function or method to operate on different types of data.

    • Polymorphism allows objects of different classes to be treated as objects of a common superclass.

    • There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).

    • Example: Inheritance in Java allows a subclass to override a method of its superclass, exhibiting polymorphic behavior.

  • Answered by AI
  • Q2. What is inheritance?
  • Ans. 

    Inheritance is a mechanism in object-oriented programming where a class inherits properties and behaviors from another class.

    • Allows a class to inherit attributes and methods from another class

    • Promotes code reusability and reduces redundancy

    • Creates a parent-child relationship between classes

    • Derived class can override inherited methods or add new methods

    • Example: Class Car can inherit from class Vehicle

  • Answered by AI

Interview questions from similar companies

I was interviewed before Mar 2021.

Round 1 - Face to Face 

(6 Questions)

Round duration - 60 minutes
Round difficulty - Medium

The interviewer was really cool. He realized that I mostly work on java applications so he chose to ask me stuff related to that. He didn't want me to know the answer well but just wanted me to approach to it, maybe think more. He went through my resume back and forth and asked mostly about all my projects and their logic and how could I take them to the next level.
Tips: Be confident. Its okay not to know any answer, just try giving it a shot in the approach.

  • Q1. What is the difference between an abstract class and an interface in Java?
  • Ans. 

    Abstract class can have both abstract and non-abstract methods, while interface can only have abstract methods.

    • Abstract class can have constructors, member variables, and methods with implementation.

    • Interface can only have abstract methods and constants.

    • A class can implement multiple interfaces but can only extend one abstract class.

    • Example: Abstract class - Animal with abstract method 'eat', Interface - Flyable with m

  • Answered by AI
  • Q2. What is the difference between 'final', 'finally', and 'finalize' in Java?
  • Ans. 

    final is a keyword used to declare constants, finally is a block used in exception handling, and finalize is a method used for cleanup.

    • final is a keyword used to declare constants in Java, meaning the value cannot be changed once assigned. Example: final int x = 10;

    • finally is a block used in exception handling to ensure a piece of code is always executed, whether an exception is thrown or not. Example: try { // code } ...

  • Answered by AI
  • Q3. What is the difference between the private and final access modifiers in Java?
  • Ans. 

    Private restricts access to the class itself, while final prevents inheritance and method overriding.

    • Private access modifier restricts access to the class itself, while final access modifier prevents inheritance and method overriding.

    • Private members are only accessible within the same class, while final classes cannot be extended and final methods cannot be overridden.

    • Example: private int num; - num can only be accesse...

  • Answered by AI
  • Q4. What are the steps for establishing a JDBC connection?
  • Ans. 

    Establishing a JDBC connection involves loading the driver, creating a connection, creating a statement, executing queries, and handling exceptions.

    • Load the JDBC driver using Class.forName() method

    • Create a connection using DriverManager.getConnection() method

    • Create a statement using connection.createStatement() method

    • Execute queries using statement.executeQuery() method

    • Handle exceptions using try-catch blocks

  • Answered by AI
  • Q5. What is JSON?
  • Ans. 

    JSON is a lightweight data interchange format used to store and transmit data between a server and a web application.

    • JSON stands for JavaScript Object Notation.

    • It is easy for humans to read and write, and easy for machines to parse and generate.

    • JSON is language-independent and can be used with any programming language.

    • Example: {"name": "John", "age": 30}

    • Example: [{"name": "Alice", "age": 25}, {"name": "Bob", "age": 35}

  • Answered by AI
  • Q6. What do you know about garbage collection in Java?
  • Ans. 

    Garbage collection in Java is the process of automatically managing memory by deallocating objects that are no longer needed.

    • Garbage collection helps in preventing memory leaks by reclaiming memory used by objects that are no longer referenced.

    • Java uses a garbage collector to automatically manage memory, unlike languages like C++ where memory management is manual.

    • Garbage collection in Java can be triggered by calling S...

  • Answered by AI
Round 2 - HR 

Round duration - 30 minutes
Round difficulty - Easy

I wouldn't say it went great but it was fine. I did not think I would clear it as for most of the questions the interviewer seemed disappointed and wanted more out of me.

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPACerner Corporation interview preparation:Topics to prepare for the interview - Object Oriented Programming (OOP) Basics, Basics Of Machine Learning, Data Structures and Algorithms, Database Management, Java ProgrammingTime required to prepare for the interview - 5 monthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewSelected

Skills evaluated in this interview

I was interviewed before Apr 2021.

Round 1 - Face to Face 

(6 Questions)

Round duration - 60 minutes
Round difficulty - Medium

Started with the discussion why do you want to join DE shaw. Since prior to my current company, I was working with a finance based company so they asked why do you want to come back to finance base company. So they asked my about debentures, bonds, mortgages and other financial jargons.
Then they asked questions related to DSA, OS etc.

  • Q1. 

    Find Triplets with Given Sum Problem Statement

    Given an array ARR consisting of N integers, your task is to identify all distinct triplets within the array that sum up to a given integer K.

    Explanation:

    ...
  • Ans. 

    The task is to find all distinct triplets in an array that sum up to a given integer.

    • Iterate through the array and use nested loops to find all possible triplets.

    • Use a set to store unique triplets and avoid duplicates.

    • Check if the sum of the triplet equals the target sum.

    • Return the list of valid triplets or -1 if no such triplet exists.

  • Answered by AI
  • Q2. 

    Minimum Number of Platforms Problem

    Your task is to determine the minimum number of platforms required at a railway station so that no train has to wait.

    Explanation:

    Given two arrays:

    • AT - represent...
  • Ans. 

    Determine the minimum number of platforms needed at a railway station so that no train has to wait.

    • Sort the arrival and departure times arrays in ascending order.

    • Initialize two pointers for arrival and departure times, and a variable to keep track of the maximum number of platforms needed.

    • Increment the platform count when a train arrives and decrement when a train departs.

    • Update the maximum platform count as needed.

    • Ret...

  • Answered by AI
  • Q3. What is the difference between internal fragmentation and external fragmentation in operating systems?
  • Ans. 

    Internal fragmentation occurs when memory is allocated in fixed-size blocks, leading to wasted space within a block. External fragmentation occurs when free memory is fragmented into small chunks, making it difficult to allocate contiguous blocks.

    • Internal fragmentation is caused by allocating fixed-size blocks of memory, leading to wasted space within a block.

    • External fragmentation occurs when free memory is fragmented...

  • Answered by AI
  • Q4. Write an SQL query to find the employee with the nth highest salary.
  • Ans. 

    SQL query to find the employee with the nth highest salary

    • Use the ORDER BY clause to sort salaries in descending order

    • Use the LIMIT clause to select the nth highest salary

    • Join the employee table with the salary table to get the employee details

  • Answered by AI
  • Q5. How is Java platform independent?
  • Ans. 

    Java is platform independent due to its bytecode and JVM.

    • Java code is compiled into bytecode, which can run on any platform with a Java Virtual Machine (JVM)

    • JVM acts as an intermediary between the Java code and the underlying platform, ensuring portability

    • Developers write code once and it can be executed on any platform that has a compatible JVM

    • Examples: Windows, macOS, Linux all can run Java programs without any chang

  • Answered by AI
  • Q6. What is the difference between an abstract class and an interface in Java?
  • Ans. 

    Abstract class can have both abstract and non-abstract methods, while interface can only have abstract methods.

    • Abstract class can have constructor, member variables, and methods with implementation.

    • Interface can only have abstract methods and constants.

    • A class can implement multiple interfaces but can only extend one abstract class.

    • Example: Abstract class - Animal with abstract method 'eat' and non-abstract method 'sle

  • Answered by AI

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPADE Shaw India interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 5 monthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewRejected

Skills evaluated in this interview

I was interviewed before Apr 2021.

Round 1 - Face to Face 

(4 Questions)

Round duration - 45 minutes
Round difficulty - Medium

Technical Interview round with questions on Core Subjects mainly.

  • Q1. What is the difference between C and C++?
  • Ans. 

    C is a procedural programming language while C++ is an object-oriented programming language with features like classes and inheritance.

    • C is a procedural programming language, while C++ is a multi-paradigm language with support for object-oriented programming.

    • C does not support classes and objects, while C++ does.

    • C uses structures for data organization, while C++ uses classes for data organization.

    • C does not have featur...

  • Answered by AI
  • Q2. What is a virtual function?
  • Ans. 

    A virtual function is a function in a base class that is declared using the keyword 'virtual' and can be overridden by a function with the same signature in a derived class.

    • Virtual functions allow for dynamic polymorphism in object-oriented programming.

    • They are used to achieve runtime binding and enable the implementation of the function to be determined during runtime.

    • Example: virtual void display() = 0; in a base cla...

  • Answered by AI
  • Q3. What is inheritance in object-oriented programming?
  • Ans. 

    Inheritance is a concept in object-oriented programming where a class inherits properties and behaviors from another class.

    • Allows for code reusability by creating a new class based on an existing class

    • Child class inherits attributes and methods of the parent class

    • Can have multiple levels of inheritance (e.g. grandparent, parent, child classes)

    • Example: class Dog extends Animal, where Dog inherits properties and methods

  • Answered by AI
  • Q4. What is the difference between a Default Constructor and a Copy Constructor in Object-Oriented Programming?
  • Ans. 

    Default Constructor is a constructor that is automatically called when an object is created without any arguments. Copy Constructor is used to create a new object as a copy of an existing object.

    • Default Constructor has no parameters, while Copy Constructor takes an object of the same class as a parameter.

    • Default Constructor initializes the object with default values, while Copy Constructor creates a new object with the...

  • Answered by AI
Round 2 - Face to Face 

(5 Questions)

Round duration - 40 minutes
Round difficulty - Easy

Technical Interview round with questions on Core Subjects mainly.

  • Q1. What are the types of access modifiers in C++?
  • Ans. 

    The types of access modifiers in C++ are public, private, and protected.

    • Public: accessible from outside the class

    • Private: only accessible within the class

    • Protected: accessible within the class and its subclasses

  • Answered by AI
  • Q2. What is the difference between DDL (Data Definition Language) and DML (Data Manipulation Language)?
  • Ans. 

    DDL is used to define the structure of database objects, while DML is used to manipulate data within those objects.

    • DDL is used to create, modify, and delete database objects like tables, indexes, etc.

    • DML is used to insert, update, delete, and retrieve data from database tables.

    • DDL statements include CREATE, ALTER, DROP, TRUNCATE, etc.

    • DML statements include INSERT, UPDATE, DELETE, SELECT, etc.

  • Answered by AI
  • Q3. What are the key differences between a Primary Key and a Unique Key in a database management system?
  • Ans. 

    Primary Key uniquely identifies each record in a table, while Unique Key ensures that all values in a column are distinct.

    • Primary Key does not allow NULL values, while Unique Key allows one NULL value.

    • A table can have only one Primary Key, but multiple Unique Keys.

    • Primary Key is automatically indexed, while Unique Key may or may not be indexed.

    • Primary Key is used to establish relationships between tables, while Unique ...

  • Answered by AI
  • Q4. What is the difference between DBMS and RDBMS?
  • Ans. 

    DBMS is a software system that manages databases, while RDBMS is a type of DBMS that stores data in a structured format using tables.

    • DBMS stands for Database Management System, which is a software system that allows users to interact with a database.

    • RDBMS stands for Relational Database Management System, which is a type of DBMS that stores data in a structured format using tables with rows and columns.

    • RDBMS uses Struct...

  • Answered by AI
  • Q5. What are the objectives of normalization in database management systems?
  • Ans. 

    Normalization in database management systems aims to reduce data redundancy, improve data integrity, and optimize database performance.

    • Eliminate data redundancy by breaking down data into smaller tables

    • Reduce update anomalies by ensuring data is stored in a logical and consistent manner

    • Improve data integrity by enforcing referential integrity constraints

    • Optimize database performance by reducing the amount of redundant

  • Answered by AI
Round 3 - HR 

Round duration - 30 minutes
Round difficulty - Easy

HR round with typical behavioral problems.

Interview Preparation Tips

Eligibility criteriaCS/IT/ECE And CGPA min of 7.0[CSE]. For ECE = 7.5DE Shaw India interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 5 monthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewSelected

Skills evaluated in this interview

Interview Questionnaire 

19 Questions

  • Q1. Introduce yourself
  • Ans. 

    I am a software developer with experience in Java and Python.

    • Proficient in Java and Python programming languages

    • Experience in developing web applications using Spring framework

    • Familiarity with database management systems such as MySQL and MongoDB

  • Answered by AI
  • Q2. Tell me more about your achievements
  • Ans. 

    I have achieved success in developing and implementing various software solutions.

    • Developed a web application that increased user engagement by 30%

    • Implemented a new feature that reduced system downtime by 50%

    • Created a mobile app that received 4.5-star rating on app stores

    • Led a team of developers to successfully complete a project within a tight deadline

  • Answered by AI
  • Q3. What sort of projects do you work on ?
  • Ans. 

    I work on a variety of projects ranging from web development to mobile app development.

    • Web development using HTML, CSS, JavaScript, and various frameworks such as React and Angular

    • Mobile app development for iOS and Android using Swift, Kotlin, and React Native

    • Database design and management using SQL and NoSQL databases such as MySQL and MongoDB

    • API development and integration using REST and GraphQL

    • Machine learning proje...

  • Answered by AI
  • Q4. What is the difference between a hardworker and a smartworker?
  • Ans. 

    A hardworker puts in more effort, while a smartworker works efficiently and effectively.

    • A hardworker may spend more time on a task, while a smartworker finds ways to complete it faster.

    • A hardworker may rely on brute force, while a smartworker uses their skills and knowledge to solve problems.

    • A hardworker may struggle with prioritization, while a smartworker knows how to focus on the most important tasks.

    • A hardworker ma...

  • Answered by AI
  • Q5. What makes you say that you are more of a developer than an analyst ?( I was asked for choice )
  • Q6. Why is Zuckerburg in news these days?
  • Ans. 

    Zuckerberg is in news due to Facebook's handling of user data and misinformation.

    • Facebook's role in the 2016 US Presidential election

    • Cambridge Analytica scandal

    • Testimony before US Congress

    • Ongoing debate on social media regulation

  • Answered by AI
  • Q7. Tell me about yourself
  • Ans. 

    I am a software developer with experience in Java and Python.

    • I have a Bachelor's degree in Computer Science.

    • I have worked on various projects involving web development and data analysis.

    • I am proficient in Java and Python programming languages.

    • I am a quick learner and enjoy working in a team environment.

  • Answered by AI
  • Q8. Which is your favourite project (among mentioned in resume) and why?
  • Ans. 

    My favorite project is the e-commerce website I developed for a local business.

    • I enjoyed working on the front-end design and user experience.

    • I implemented a secure payment gateway and order tracking system.

    • The website increased the business's online sales by 50%.

    • I received positive feedback from the client and their customers.

  • Answered by AI
  • Q9. OOPs concepts
  • Q10. Explain inheritance
  • Ans. 

    Inheritance is a mechanism in object-oriented programming where a new class is created by inheriting properties of an existing class.

    • Inheritance allows code reuse and promotes code organization.

    • The existing class is called the parent or superclass, and the new class is called the child or subclass.

    • The child class inherits all the properties and methods of the parent class and can also add its own unique properties and ...

  • Answered by AI
  • Q11. Difference between finally , finalize and final
  • Ans. 

    finally is a keyword used in try-catch block, finalize is a method in Object class, and final is a keyword used for declaring constants.

    • finally is used to execute a block of code after try-catch block

    • finalize is called by garbage collector before destroying an object

    • final is used to declare a constant variable or to make a class uninheritable

  • Answered by AI
  • Q12. Private vs final keyword in considerance with member functions in an application offered to the user
  • Ans. 

    Private keyword restricts access to member functions within the class while final keyword prevents overriding of functions.

    • Private keyword is used to hide the implementation details of a class from the user.

    • Final keyword is used to prevent the user from overriding a function in a subclass.

    • Using private and final keywords together can ensure that the implementation details of a class are not modified by the user.

  • Answered by AI
  • Q13. Write an interface
  • Ans. 

    An interface defines a set of methods that a class must implement.

    • An interface is declared using the 'interface' keyword.

    • All methods in an interface are public and abstract by default.

    • A class can implement multiple interfaces.

    • Interfaces can also extend other interfaces.

    • Example: public interface MyInterface { void myMethod(); }

  • Answered by AI
  • Q14. Difference between Abstract class and Interface
  • Ans. 

    Abstract class is a class with some implementation while Interface is a contract with no implementation.

    • Abstract class can have constructors while Interface cannot

    • Abstract class can have non-abstract methods while Interface cannot

    • A class can implement multiple interfaces but can only inherit from one abstract class

    • Abstract class is used when there is a need for common functionality among related classes while Interface...

  • Answered by AI
  • Q15. Inheritance types in Java
  • Ans. 

    Inheritance types in Java

    • Java supports single and multiple inheritance through classes and interfaces respectively

    • Single inheritance is when a class extends only one parent class

    • Multiple inheritance is when a class implements multiple interfaces

    • Java also supports hierarchical inheritance where multiple classes extend a single parent class

    • Java does not support multiple inheritance through classes to avoid the diamond pr

  • Answered by AI
  • Q16. Order of multiple catch blocks in a single try block in java. Will it compile if the general catch was before the specific one?
  • Ans. 

    Order of catch blocks in a try block in Java

    • Specific catch blocks should come before general catch blocks

    • If general catch block comes before specific catch block, it will result in a compile-time error

    • If multiple catch blocks are present, only the first matching catch block will be executed

  • Answered by AI
  • Q17. What do you know about Garbage collection
  • Ans. 

    Garbage collection is an automatic memory management process that frees up memory occupied by objects that are no longer in use.

    • Garbage collection is used in programming languages like Java, C#, and Python.

    • It helps prevent memory leaks and reduces the risk of crashes due to memory exhaustion.

    • Garbage collection works by identifying objects that are no longer in use and freeing up the memory they occupy.

    • There are differe...

  • Answered by AI
  • Q18. Write code for connecting a java application to the database
  • Ans. 

    Code for connecting a Java application to a database

    • Import the JDBC driver for the specific database

    • Create a connection object using the DriverManager class

    • Create a statement object to execute SQL queries

    • Execute the query and retrieve the results

    • Close the connection and release resources

  • Answered by AI
  • Q19. What is JSON?
  • Ans. 

    JSON stands for JavaScript Object Notation, a lightweight data interchange format.

    • JSON is used to transmit data between a server and a web application, as an alternative to XML.

    • It is easy to read and write for humans and easy to parse and generate for machines.

    • JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C family of languages.

    • Example: {"name"

  • Answered by AI

Interview Preparation Tips

Round: Test
Experience: The test had 50 questions which were to be answered in 50 minutes. The test is not very difficult if you got basic skills in aptitude, but the most important thing is managing time. The level of difficulty was moderate.
Tips: Do not waste time on verbal questions which have a direct answer ( synonyms and antonyms) which you are not very sure of.
Just try making a smart guess when you have a doubt by elimination or something.
Duration: 50 minutes
Total Questions: 50

Round: HR Interview
Experience: I wouldn't say it went great but it was fine. I did not think I would clear it as for most of the questions the interviewer seemed disappointed and wanted more out of me.
Tips: Keep smiling.
Only put things which you are thorough about, in your resume.
The interviewer too doesn't know everything, so just be confident in whatever you say-the interviewer might get convinced.

Round: Technical Interview
Experience: The interviewer was really cool. He realized that I mostly work on java applications so he chose to ask me stuff related to that.
He didn't want me to know the answer well but just wanted me to approach to it, maybe think more.
He went through my resume back and forth and asked mostly about all my projects and their logic and how could I take them to the next level.
Tips: Be confident.
Its okay not to know any answer, just try giving it a shot in the approach.

Skills: Object Oriented Programming (OOP) Basics, Basics Of Machine Learning, Ability To Analyse, Ability To Think Of Creative Solutions, Ability To Think Beyond Boundaries, Ability To Convince, Database Management, Java Programming
College Name: Amrita School Of Engineering, Coimbatore
Funny Moments: I had mentioned Japanese as languages known in my resume. During the HR interview , I was asked to tell "How are you ?" in Japanese. I knew that the interviewer didn't know any of that language but I was a little scared to just tell anything.
You could try giving a shot in a similar situation :P

Skills evaluated in this interview

Interview Preparation Tips

Round: Test
Experience: The first round had two sections. First section consisted of general aptitude and technical aptitude questions. In the second section we were given one coding question, for which we had to write the code in a language of our preference (C,C++,Java). Around 20 students were selected in the first round.

Round: Technical Interview
Experience: The second round was a technical interview. Two interviewers were present and the interview duration was 1-1.5 hours. Questions on Computer Networks, Databases, Operating Systems, Algorithms were asked. But they were more concerned about coding fundamentals especially C++ and Java. 6 students were selected in the second round.

Round: Technical Interview
Experience: Third round was again a technical interview. The interview process was same as previous second round.

Round: HR Interview
Experience: All the 6 students who were selected for the third round had a HR interview.

General Tips: The technical interview process was exhausting as the interview duration was 1-1.5 hours and challenging as they asked questions from all major fields of computer science.
Skill Tips: Prepare a decent resume and have at least 3-4 hard copies of it available with you all the times.Also do carry passport size photos with you. While going for interviews wear proper formals,carry 2-3 copies of resume and a pen.
Skills: C, Basic coding questions, Database, Data structures, Computer Networks, OS, Algorithms
College Name: NIT SURATHKAL

I was interviewed before Apr 2021.

Round 1 - Coding Test 

(1 Question)

Round duration - 40 minutes
Round difficulty - Medium

The test has 3 sections :
1. Quantitative contains 20 questions. These questions are easy to me. If u practice quant, you can easily solve it.


2. Technical contains 20 questions. Some questions are on C , C++ , java outputs. Remaining are based on DSA. If u Know all the time complexities of algorithms then it is easy . In technical they gave one DSA problem.
 

3. Essay: They have given one picture and then asked to write an essay by seeing the picture.

  • Q1. 

    Dijkstra's Algorithm for Shortest Path

    Given an undirected graph with 'V' vertices labeled from 0 to V-1 and 'E' edges. Each edge has a weight that represents the distance between two nodes 'X' and 'Y'.

    ...

  • Ans. 

    Dijkstra's algorithm is used to find the shortest path distances from a source node to all other vertices in a graph.

    • Dijkstra's algorithm is a greedy algorithm that finds the shortest path from a source node to all other nodes in a graph.

    • It uses a priority queue to select the node with the smallest distance and relaxes its neighbors.

    • The algorithm maintains a distance array to keep track of the shortest distances from t...

  • Answered by AI
Round 2 - Face to Face 

(3 Questions)

Round duration - 60 minutes
Round difficulty - Easy

3 persons are there in panel. They are asking questions on basic concepts in subjects and some advanced concepts.

  • Q1. What is a Daemon Process?
  • Ans. 

    A daemon process is a background process that runs continuously to perform system tasks.

    • Daemon processes do not have a controlling terminal.

    • They typically run in the background and perform tasks such as managing hardware devices, network services, or system maintenance.

    • Examples of daemon processes include cron, sshd, and apache.

    • Daemon processes are often started during system boot and run until the system is shut down.

  • Answered by AI
  • Q2. What are the advantages of system calls in operating systems?
  • Ans. 

    System calls provide a way for user-level processes to interact with the operating system kernel.

    • System calls allow user programs to request services from the operating system.

    • They provide a secure and controlled way for applications to access system resources.

    • System calls enable processes to perform tasks such as file operations, network communication, and process management.

    • Examples of system calls include open(), re

  • Answered by AI
  • Q3. Can you explain the select() system call?
  • Ans. 

    The select() system call is used in Unix-like operating systems to monitor multiple file descriptors for activity.

    • select() allows a program to wait for multiple I/O operations to complete on multiple file descriptors.

    • It takes three sets of file descriptors as arguments - readfds, writefds, and errorfds.

    • The function will block until an activity is detected on one of the file descriptors or until a timeout occurs.

    • select(...

  • Answered by AI

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPADE Shaw India interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 6 monthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewSelected

Skills evaluated in this interview

I was interviewed before Apr 2021.

Round 1 - Face to Face 

(2 Questions)

Round duration - 45 minutes
Round difficulty - Medium

Technical Interview round with questions on DSA.

  • Q1. 

    Binary Tree Mirror Conversion Problem

    Given a binary tree, your task is to convert it into its mirror tree.

    A binary tree is a data structure where each parent node has at most two children.

    The mirror ...

  • Ans. 

    Convert a binary tree into its mirror tree by interchanging left and right children of non-leaf nodes.

    • Traverse the binary tree in postorder fashion and swap the left and right children of each non-leaf node.

    • Use recursion to solve the problem efficiently.

    • Remember to handle null child nodes represented by -1 in the input.

  • Answered by AI
  • Q2. 

    Maximum Sum Subarray Problem Statement

    Given an array of integers, find the maximum sum of any contiguous subarray within the array.

    Example:

    Input:
    array = [34, -50, 42, 14, -5, 86]
    Output:
    137
    Exp...
  • Ans. 

    Find the maximum sum of any contiguous subarray within an array in O(N) time complexity.

    • Iterate through the array and keep track of the maximum sum of subarrays encountered so far

    • At each index, decide whether to include the current element in the subarray or start a new subarray

    • Update the maximum sum if a new maximum is found

    • Example: For array [34, -50, 42, 14, -5, 86], the maximum sum subarray is [42, 14, -5, 86] with

  • Answered by AI
Round 2 - Face to Face 

(2 Questions)

Round duration - 45 minutes
Round difficulty - Hard

Technical Interview round with questions on DSA.

  • Q1. 

    Find the Largest BST Subtree in a Given Binary Tree

    Your task is to determine the size of the largest subtree of a given binary tree which is also a Binary Search Tree (BST).

    BST Definition:

    • The left...
  • Ans. 

    Find the size of the largest subtree in a binary tree that is also a Binary Search Tree (BST).

    • Traverse the binary tree in a bottom-up manner to check if each subtree is a BST.

    • Keep track of the size of the largest BST subtree encountered so far.

    • Use the properties of a BST to determine if a subtree is a valid BST.

    • Consider edge cases such as empty tree or single node tree.

    • Example: For input 1 2 3 4 -1 5 6 -1 7 -1 -1 -1 -1

  • Answered by AI
  • Q2. 

    Next Higher and Previous Lower Number with Same Number of Set Bits

    Given a positive integer n, the task is to find the next smallest integer and the previous largest integer that contain the exact same nu...

  • Ans. 

    Find next smallest and previous largest integers with same number of set bits as given integer.

    • Count the number of set bits in the given integer using bitwise operations.

    • For next smallest integer, find the next number with same number of set bits by iterating through numbers greater than the given integer.

    • For previous largest integer, find the previous number with same number of set bits by iterating through numbers sm

  • Answered by AI

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPADE Shaw India interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 5 monthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewRejected

Skills evaluated in this interview

Interview Preparation Tips

Round: Test
Experience: Approx. 30.questions in 50 min
Tips: Try solving each que in less than a minute ,don't waste time on difficult questions, complete easier once first
Duration: 50 minutes
Total Questions: 30

College Name: Pimpri chinchwad college of engineering

Interview Questionnaire 

12 Questions

  • Q1. Find maximum length BST in a given binary tree?
  • Ans. 

    To find the maximum length BST in a given binary tree.

    • Traverse the tree in post-order fashion

    • For each node, check if it satisfies the BST property

    • If it does, calculate the size of the BST rooted at that node

    • Keep track of the maximum size seen so far

  • Answered by AI
  • Q2. Write an algorithm to find the absolute max subsequence of an array containing both positive and negative numbers in O(n) time ?
  • Ans. 

    Algorithm to find absolute max subsequence of an array with positive and negative numbers in O(n) time.

    • Initialize max_so_far and max_ending_here as 0

    • Loop through the array and for each element, add it to max_ending_here

    • If max_ending_here becomes negative, reset it to 0

    • If max_ending_here is greater than max_so_far, update max_so_far

    • Return max_so_far

  • Answered by AI
  • Q3. Given an array eliminate the duplicates and print it. Linear time complexity?
  • Ans. 

    Eliminate duplicates in an array of strings and print it in linear time complexity.

    • Use a hash set to keep track of unique elements

    • Iterate through the array and add non-duplicate elements to the hash set

    • Print the hash set elements to get the final array

  • Answered by AI
  • Q4. Balancing of Btrees / AVL trees?
  • Ans. 

    Balancing of Btrees / AVL trees is important for efficient search and insertion operations.

    • Btrees and AVL trees are self-balancing binary search trees.

    • Balancing ensures that the height of the tree is minimized, leading to faster search and insertion operations.

    • Btrees are used in databases while AVL trees are used in memory.

    • Balancing is achieved by performing rotations and node splitting.

    • AVL trees have a stricter balanc...

  • Answered by AI
  • Q5. Two cops and a robber are located on opposite corners of a cube and move along its edges. They all move at the same rate. Is it possible for the cops to catch the robber. [Each of the 3 people can see each...
  • Q6. In some tournament 139 teams have participated. Tournament is knock out. what is the number of matches to choose the champion to be held?
  • Ans. 

    139 teams in a knock-out tournament, find the number of matches to choose the champion.

    • In a knock-out tournament, each team plays only one match per round.

    • The number of matches required to choose the champion is one less than the number of teams.

    • Therefore, the number of matches required is 138.

  • Answered by AI
  • Q7. OS concepts – Threading, Deadlocks, Paging etc
  • Q8. Databases Questions – Transactions, ACID etc
  • Q9. Project details in your resume?
  • Ans. 

    My resume includes projects such as a web-based inventory management system and a mobile app for tracking fitness goals.

    • Developed a web-based inventory management system using PHP and MySQL

    • Created a mobile app for tracking fitness goals using React Native

    • Implemented RESTful APIs for communication between front-end and back-end

    • Utilized version control tools such as Git for collaborative development

    • Designed and implement...

  • Answered by AI
  • Q10. Given a 7mt long gold bar , need to cut and give to worker for 7 days (1 meter long) How many min cuts?
  • Q11. Write algo to mirror a given Binary Tree?
  • Ans. 

    Algorithm to mirror a given Binary Tree

    • Create a function to swap left and right child nodes of a given node

    • Recursively call the function on left and right child nodes

    • Base case: if node is null, return

    • Call the function on the root node of the binary tree

  • Answered by AI
  • Q12. Find the next largest int of a given int such that it has same number of 1′s in binary?
  • Ans. 

    Find the next largest int with same number of 1's in binary.

    • Count the number of 1's in the binary representation of the given int.

    • Increment the given int until a number with the same number of 1's is found.

    • Return the next largest int with same number of 1's.

  • Answered by AI

Interview Preparation Tips

Skills: C,C++ , JAVA , Finding output, Basic Concepts
College Name: NA

Skills evaluated in this interview

Contribute & help others!
anonymous
You can choose to be anonymous

Cactus Communications Interview FAQs

How many rounds are there in Cactus Communications Backend Java Developer interview?
Cactus Communications interview process usually has 1 rounds. The most common rounds in the Cactus Communications interview process are Technical.
What are the top questions asked in Cactus Communications Backend Java Developer interview?

Some of the top questions asked at the Cactus Communications Backend Java Developer interview -

  1. What is polymorphi...read more
  2. What is inheritan...read more

Recently Viewed

JOBS

EbixCash Limited

No Jobs

JOBS

EbixCash Limited

No Jobs

INTERVIEWS

MapmyIndia

No Interviews

INTERVIEWS

MapmyIndia

No Interviews

INTERVIEWS

Cactus Communications

No Interviews

INTERVIEWS

MapmyIndia

No Interviews

INTERVIEWS

ScoreMe Solutions

No Interviews

SALARIES

Cactus Communications

SALARIES

Cactus Communications

SALARIES

QBurst Technologies

No Salaries

Tell us how to improve this page.

Cactus Communications Backend Java Developer Interview Process

based on 1 interview

Interview experience

4
  
Good
View more

Interview Questions from Similar Companies

KPIT Technologies Interview Questions
3.4
 • 280 Interviews
Globant Interview Questions
3.8
 • 172 Interviews
Chetu Interview Questions
3.3
 • 172 Interviews
Oracle Cerner Interview Questions
3.7
 • 157 Interviews
AVASOFT Interview Questions
3.6
 • 148 Interviews
Brane Enterprises Interview Questions
2.0
 • 132 Interviews
ivy Interview Questions
3.6
 • 122 Interviews
DE Shaw Interview Questions
3.8
 • 120 Interviews
ServiceNow Interview Questions
4.1
 • 120 Interviews
View all

Fast track your campus placements

View all
Editor
41 salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Project Manager
30 salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Correspondent/Assistant Editor/Associate Editor
30 salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Associate Editor
29 salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Assistant Manager
26 salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Explore more salaries
Compare Cactus Communications with

Enago

4.4
Compare

Crimson Interactive

2.9
Compare

Wordvice

4.0
Compare

TridIndia IT Translation Services

3.1
Compare
Did you find this page helpful?
Yes No
write
Share an Interview