Upload Button Icon Add office photos
Engaged Employer

i

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

Community Brands Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

Community Brands Java Software Developer Interview Questions and Answers

Updated 9 May 2023

7 Interview questions

A Java Software Developer was asked
Q. Which Java 8 features do you use in your current project?
Ans. 

I use lambda expressions, streams, and default methods in my current project.

  • Lambda expressions: I use them to write more concise and functional code.

  • Streams: I use them for processing collections of data in a declarative way.

  • Default methods: I use them to provide default implementations in interfaces.

A Java Software Developer was asked
Q. How does a HashMap work internally?
Ans. 

HashMap is an implementation of Map interface that stores key-value pairs using a hash table.

  • HashMap uses hashing to store and retrieve elements.

  • It uses an array of linked lists to handle collisions.

  • The hash code of the key is used to determine the index of the array.

  • If multiple keys have the same hash code, they are stored in the same linked list.

  • When retrieving a value, the hash code is used to find the correct ...

Java Software Developer Interview Questions Asked at Other Companies

Q1. Explain your technical skills and current domain.
asked in Synechron
Q2. How do you convert list to arraylist? And vice versa
Q3. When two threads access the same ArrayList object, what is the ou ... read more
asked in Synechron
Q4. What are functional interfaces? What is the need to have function ... read more
asked in HCLTech
Q5. Q14) Can We write Procedures in String Data JPA? How to handle co ... read more
A Java Software Developer was asked
Q. What are the types of iterators in Java?
Ans. 

There are three types of iterators in Java: Iterator, ListIterator, and Enumeration.

  • Iterator is the most commonly used iterator, used to traverse collections like ArrayList, HashSet, etc.

  • ListIterator is used to traverse lists and allows bidirectional traversal and modification of elements.

  • Enumeration is the oldest type of iterator, used to traverse legacy collections like Vector and Hashtable.

A Java Software Developer was asked
Q. Write a Java program to count the length of a string without using a for-each loop or the length function.
Ans. 

The Java program counts the length of a string without using foreach and length function.

  • Iterate through each character of the string using a for loop

  • Increment a counter variable for each character encountered

  • Return the counter variable as the length of the string

A Java Software Developer was asked
Q. Explain the principles of OOP with real-time examples.
Ans. 

OOP principles include encapsulation, inheritance, polymorphism, and abstraction, essential for modular and maintainable code.

  • Encapsulation: Bundling data and methods. Example: A class 'Car' with attributes like 'speed' and methods like 'accelerate()'.

  • Inheritance: Deriving new classes from existing ones. Example: 'ElectricCar' inherits from 'Car', adding features like 'batteryCapacity'.

  • Polymorphism: Methods behavi...

A Java Software Developer was asked
Q. Explain your technical skills and current domain.
Ans. 

Explaining Java technical skills and analyzing code snippets for output prediction.

  • Understand Java syntax: Familiarity with variables, data types, and operators.

  • Control structures: Know how if-else, switch, and loops (for, while) work.

  • Object-oriented principles: Grasp concepts like inheritance, polymorphism, and encapsulation.

  • Exception handling: Be able to explain try-catch blocks and custom exceptions.

  • Collections...

A Java Software Developer was asked
Q. Explain Concurrent Modification Exception, fail-fast, and fail-safe.
Ans. 

ConcurrentModificationException occurs when a collection is modified while iterating. Fail-fast and fail-safe are strategies to handle this.

  • Fail-fast: Throws ConcurrentModificationException immediately when a collection is modified during iteration.

  • Example: Using an ArrayList in a for-each loop and modifying it leads to ConcurrentModificationException.

  • Fail-safe: Allows iteration over a collection even if it is mod...

Are these interview questions helpful?

Community Brands Java Software Developer Interview Experiences

1 interview found

Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
-

I applied via LinkedIn and was interviewed in Apr 2023. There were 2 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Technical 

(9 Questions)

  • Q1. 1)First interviewer asked me to explain all technical skills and current domain. During interviewer showed me around 10 different code snippets and asked me to guess the output, these code snippets related...
  • Ans. 

    Explaining Java technical skills and analyzing code snippets for output prediction.

    • Understand Java syntax: Familiarity with variables, data types, and operators.

    • Control structures: Know how if-else, switch, and loops (for, while) work.

    • Object-oriented principles: Grasp concepts like inheritance, polymorphism, and encapsulation.

    • Exception handling: Be able to explain try-catch blocks and custom exceptions.

    • Collections fram...

  • Answered by AI
  • Q2. 2)After that interviewer asked me to explain all principle of oops with real time example
  • Ans. 

    OOP principles include encapsulation, inheritance, polymorphism, and abstraction, essential for modular and maintainable code.

    • Encapsulation: Bundling data and methods. Example: A class 'Car' with attributes like 'speed' and methods like 'accelerate()'.

    • Inheritance: Deriving new classes from existing ones. Example: 'ElectricCar' inherits from 'Car', adding features like 'batteryCapacity'.

    • Polymorphism: Methods behaving di...

  • Answered by AI
  • Q3. 3)Types of iterator in java
  • Ans. 

    There are three types of iterators in Java: Iterator, ListIterator, and Enumeration.

    • Iterator is the most commonly used iterator, used to traverse collections like ArrayList, HashSet, etc.

    • ListIterator is used to traverse lists and allows bidirectional traversal and modification of elements.

    • Enumeration is the oldest type of iterator, used to traverse legacy collections like Vector and Hashtable.

  • Answered by AI
  • Q4. 4)How hashmap works internally
  • Ans. 

    HashMap is an implementation of Map interface that stores key-value pairs using a hash table.

    • HashMap uses hashing to store and retrieve elements.

    • It uses an array of linked lists to handle collisions.

    • The hash code of the key is used to determine the index of the array.

    • If multiple keys have the same hash code, they are stored in the same linked list.

    • When retrieving a value, the hash code is used to find the correct linke...

  • Answered by AI
  • Q5. 5)concuurent modification exception fail fast and fail safe
  • Ans. 

    ConcurrentModificationException occurs when a collection is modified while iterating. Fail-fast and fail-safe are strategies to handle this.

    • Fail-fast: Throws ConcurrentModificationException immediately when a collection is modified during iteration.

    • Example: Using an ArrayList in a for-each loop and modifying it leads to ConcurrentModificationException.

    • Fail-safe: Allows iteration over a collection even if it is modified...

  • Answered by AI
  • Q6. 6)sql query for finding 2nd highest salary of employee
  • Ans. 

    SQL query to find the 2nd highest salary of an employee.

    • Use the SELECT statement to retrieve the salaries in descending order.

    • Use the LIMIT clause to limit the result to the second row.

    • Use the OFFSET clause to skip the first row.

    • Combine the above steps in a single SQL query.

  • Answered by AI
  • Q7. 7)Java program to count length of the string without using foreach and length function
  • Ans. 

    The Java program counts the length of a string without using foreach and length function.

    • Iterate through each character of the string using a for loop

    • Increment a counter variable for each character encountered

    • Return the counter variable as the length of the string

  • Answered by AI
  • Q8. 8)which java 8 features do you use in your current project
  • Ans. 

    I use lambda expressions, streams, and default methods in my current project.

    • Lambda expressions: I use them to write more concise and functional code.

    • Streams: I use them for processing collections of data in a declarative way.

    • Default methods: I use them to provide default implementations in interfaces.

  • Answered by AI
  • Q9. 9)how to avoid hash collision
  • Ans. 

    To avoid hash collisions, use a good hash function, increase the size of the hash table, and handle collisions using techniques like chaining or open addressing.

    • Use a good hash function that distributes the keys evenly across the hash table.

    • Increase the size of the hash table to reduce the chances of collisions.

    • Handle collisions using techniques like chaining (using linked lists) or open addressing (probing).

    • Chaining e...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - prepare all core java concepts and explain everything in detail with real time scenarios

Skills evaluated in this interview

Top trending discussions

View All
Interview Tips & Stories
2w
toobluntforu
·
works at
Cvent
Can speak English, can’t deliver in interviews
I feel like I can't speak fluently during interviews. I do know english well and use it daily to communicate, but the moment I'm in an interview, I just get stuck. since it's not my first language, I struggle to express what I actually feel. I know the answer in my head, but I just can’t deliver it properly at that moment. Please guide me
Got a question about Community Brands?
Ask anonymously on communities.

Interview questions from similar companies

Interview Questionnaire 

9 Questions

  • Q1. Questions related to the work done at my previous company
  • Q2. Find if a given directed graph is cyclic or not
  • Ans. 

    To check if a directed graph is cyclic or not

    • Use Depth First Search (DFS) algorithm to traverse the graph

    • Maintain a visited set to keep track of visited nodes

    • Maintain a recursion stack to keep track of nodes in the current DFS traversal

    • If a node is visited and is already in the recursion stack, then the graph is cyclic

    • If DFS traversal completes without finding a cycle, then the graph is acyclic

  • Answered by AI
  • Q3. You have a stream of bytes from which you can read one byte at a time. You only have enough space to store one byte. After processing those bytes, you have to return a random byte. Note: The probability of...
  • Ans. 

    Return a random byte from a stream of bytes with equal probability.

    • Create a variable to store the count of bytes read

    • Create a variable to store the current random byte

    • For each byte read, generate a random number between 0 and the count of bytes read

    • If the random number is 0, store the current byte as the random byte

    • Return the random byte

  • Answered by AI
  • Q4. Find if a given Binary Tree is BST or not
  • Ans. 

    Check if a binary tree is a binary search tree or not.

    • Traverse the tree in-order and check if the values are in ascending order.

    • For each node, check if its value is greater than the maximum value of its left subtree and less than the minimum value of its right subtree.

    • Use recursion to check if all nodes in the tree satisfy the above condition.

  • Answered by AI
  • Q5. Devise an algorithm to determine the Nth-to-Last element in a singly linked list of unknown length. If N = 0, then your algorithm must return the last element. You should parse the list only once
  • Ans. 

    Algorithm to find Nth-to-Last element in a singly linked list of unknown length

    • Traverse the list and maintain two pointers, one at the beginning and one at Nth node from beginning

    • Move both pointers simultaneously until the second pointer reaches the end of the list

    • The first pointer will be pointing to the Nth-to-Last element

    • If N=0, return the last element

    • Parse the list only once

  • Answered by AI
  • Q6. Given an array of integers, print all possible permutations. Also explain your approach
  • Ans. 

    Print all possible permutations of an array of integers

    • Use recursion to swap elements and generate permutations

    • Start with the first element and swap it with each subsequent element

    • Repeat the process for the remaining elements

    • Stop when all elements have been swapped with the first element

    • Print each permutation as it is generated

  • Answered by AI
  • Q7. Design a Stack DS that also prints in O(1) the minimum element you pushed in the stack
  • Ans. 

    Design a stack that prints the minimum element pushed in O(1)

    • Use two stacks, one for storing elements and another for storing minimums

    • When pushing an element, compare it with the top of minimum stack and push the smaller one

    • When popping an element, pop from both stacks

    • To get the minimum element, just return the top of minimum stack

  • Answered by AI
  • Q8. Given a linked list with loop, how would you find the starting point of the loop ?
  • Ans. 

    To find the starting point of a loop in a linked list, use Floyd's cycle-finding algorithm.

    • Use two pointers, one moving at twice the speed of the other.

    • When they meet, move one pointer to the head of the list and keep the other at the meeting point.

    • Move both pointers one step at a time until they meet again, which is the starting point of the loop.

  • Answered by AI
  • Q9. Find a number a matrix mat[m][n] where all the rows and columns are sorted non-decreasingly. What will be the complexity of the solution
  • Ans. 

    To find a number in a matrix where all rows and columns are sorted non-decreasingly. Complexity of the solution.

    • Use binary search to find the number in each row and column

    • Start from the top-right corner or bottom-left corner to optimize search

    • Time complexity: O(m log n) or O(n log m) depending on the starting corner

  • Answered by AI

Interview Preparation Tips

Skills: Algorithm, Data structure
College Name: Na

Skills evaluated in this interview

Java Software Developer Interview Questions Asked at Other Companies

Q1. Explain your technical skills and current domain.
asked in Synechron
Q2. How do you convert list to arraylist? And vice versa
Q3. When two threads access the same ArrayList object, what is the ou ... read more
asked in Synechron
Q4. What are functional interfaces? What is the need to have function ... read more
asked in HCLTech
Q5. Q14) Can We write Procedures in String Data JPA? How to handle co ... read more
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via LinkedIn and was interviewed in Nov 2024. There was 1 interview round.

Round 1 - One-on-one 

(3 Questions)

  • Q1. Roles and responsibilities
  • Q2. Problem based questions
  • Q3. Code test & discussions over best practices, best solutions, time and space complexities

I appeared for an interview in Apr 2021.

Round 1 - Coding Test 

(2 Questions)

Round duration - 120 Minutes
Round difficulty - Medium

I was MCQ + Coding round, Their were MCQ Based on DSA, Aptitude and 2 easy coding questions.

  • Q1. 

    Ninja Competition Problem Statement

    Ninja is organizing a coding competition where two teams compete at a time. To keep it fair and interesting, both teams must have an equal number of members. Ninja’s ta...

  • Ans. 

    Check if Ninja can create two teams with equal members given an integer N and its divisors.

    • Iterate through all divisors of N and assign members to the first or second team based on whether the divisor is even or odd.

    • Keep track of the total members in each team and check if they are equal at the end.

    • Return true if the total members in both teams are equal, false otherwise.

  • Answered by AI
  • Q2. 

    Help Bob Out! - Validating IFSC Code

    Bob has just turned 18 and opened a bank account. Being inexperienced with banking, Bob needs your help to validate whether an IFSC code provided by his bank is valid.

    ...
  • Ans. 

    Validate IFSC code based on given rules and return True or False for each test case.

    • Check if the code is 11 characters long.

    • Verify the first four characters are uppercase alphabets.

    • Ensure the fifth character is '0'.

    • Validate that the last six characters are alphanumeric.

  • Answered by AI
Round 2 - Video Call 

Round duration - 50 Minutes
Round difficulty - Easy

The nature of the interviewer was very kind. The test was proctored, our webcam and mic were on, and shared my screen.

Round 3 - Video Call 

Round duration - 50 minutes
Round difficulty - Easy

The nature of the interviewer was very kind. The test was proctored, our webcam and mic were on, and shared my screen.

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - 1 in BangaloreEligibility criteriaNo criteriaBottomline Technologies interview preparation:Topics to prepare for the interview - Data Structure, Algorithms, Development, Programming Languages, OOPsTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Be strong at your basics.
Tip 2 : Do at least 2 projects and ask to find answers like why are you choosing this tech stack? why did not you choose its alternatives Know your project in and out because they might ask you for a modification in your project?

Application resume tips for other job seekers

Tip 1 : Have some projects on your resume.
Tip 2 : Do not put false things on your resume.
Tip 3 : Try to keep a single-page resume.

Final outcome of the interviewRejected
Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

It was combination of mcqs and 2 coding questions

Round 2 - Technical 

(3 Questions)

  • Q1. What is oops concepts
  • Ans. 

    Object-oriented programming concepts that focus on objects and classes for better code organization and reusability.

    • Encapsulation: Bundling data and methods that operate on the data into a single unit (class).

    • Inheritance: Ability of a class to inherit properties and behavior from another class.

    • Polymorphism: Ability to present the same interface for different data types.

    • Abstraction: Hiding the complex implementation det...

  • Answered by AI
  • Q2. Difference between java nd putjon
  • Ans. 

    Java is a programming language while Putjon is not a recognized term in software development.

    • Java is a widely used programming language for developing applications.

    • Putjon is not a recognized term in software development, it may be a typo or a specific term not commonly used.

    • There is no direct comparison between Java and Putjon as they are not related.

  • Answered by AI
  • Q3. Tell about ur project
Round 3 - One-on-one 

(2 Questions)

  • Q1. What are your strengths
  • Q2. What is ur greatest comeback

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Don’t add your photo or details such as gender, age, and address in your resume. These details do not add any value.
View all tips
Round 2 - Coding Test 

Python interview question and coding

Round 3 - Technical 

(1 Question)

  • Q1. Python related question

Interview Preparation Tips

Interview preparation tips for other job seekers - Best for fresher and experience
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Selected Selected

I appeared for an interview before Feb 2022.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Technical 

(1 Question)

  • Q1. Linked list (detect loop, reverse, delte a node) tree (height, DFS) graph theory concept C++ basic questions
Round 3 - One-on-one 

(1 Question)

  • Q1. Total 3 round of Technical interviews.

Interview Preparation Tips

Interview preparation tips for other job seekers - C++ basics, Algo and Data structure and some basic concept of graph theory.
Are these interview questions helpful?
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Naukri.com and was interviewed before Jan 2024. There was 1 interview round.

Round 1 - Technical 

(1 Question)

  • Q1. Oops? .net core features
Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Properly align and format text in your resume. A recruiter will have to spend more time reading poorly aligned text, leading to high chances of rejection.
View all tips
Round 2 - One-on-one 

(2 Questions)

  • Q1. Explain basics of c#
  • Ans. 

    C# is a programming language developed by Microsoft for building a wide range of applications on the .NET framework.

    • C# is an object-oriented language with features like classes, inheritance, and polymorphism.

    • It is strongly typed, meaning variables must be declared with a specific data type.

    • C# supports modern programming concepts like async/await for asynchronous programming.

    • It is commonly used for developing desktop, w...

  • Answered by AI
  • Q2. C# basics oops sql server

Interview Preparation Tips

Interview preparation tips for other job seekers - prepare basics

Skills evaluated in this interview

Interview Questionnaire 

2 Questions

  • Q1. What is oops
  • Ans. 

    OOPs is a programming paradigm that uses objects to represent real-world entities and their interactions.

    • OOPs stands for Object-Oriented Programming.

    • It focuses on encapsulation, inheritance, and polymorphism.

    • Encapsulation means hiding the implementation details of an object from the outside world.

    • Inheritance allows creating new classes based on existing ones.

    • Polymorphism allows using a single interface to represent dif...

  • Answered by AI
  • Q2. Real world thing

Community Brands Interview FAQs

How many rounds are there in Community Brands Java Software Developer interview?
Community Brands interview process usually has 2 rounds. The most common rounds in the Community Brands interview process are Resume Shortlist and Technical.
What are the top questions asked in Community Brands Java Software Developer interview?

Some of the top questions asked at the Community Brands Java Software Developer interview -

  1. 1)First interviewer asked me to explain all technical skills and current domain...read more
  2. 8)which java 8 features do you use in your current proj...read more
  3. 7)Java program to count length of the string without using foreach and length f...read more

Tell us how to improve this page.

Overall Interview Experience Rating

4/5

based on 1 interview experience

Difficulty level

Easy 100%

Duration

Less than 2 weeks 100%
View more

Interview Questions from Similar Companies

RGBSI Interview Questions
3.3
 • 27 Interviews
MapmyIndia Interview Questions
3.6
 • 26 Interviews
Backbase Interview Questions
3.7
 • 23 Interviews
3Pillar Global Interview Questions
3.2
 • 20 Interviews
Bottomline Interview Questions
3.4
 • 20 Interviews
Mentor Graphics Interview Questions
4.0
 • 18 Interviews
Cerence Interview Questions
3.2
 • 17 Interviews
Toast Interview Questions
3.4
 • 17 Interviews
Calix Interview Questions
4.3
 • 17 Interviews
View all
Software Engineer
58 salaries
unlock blur

₹13.6 L/yr - ₹23.5 L/yr

QA Engineer
42 salaries
unlock blur

₹8.9 L/yr - ₹15 L/yr

Senior Software Engineer
39 salaries
unlock blur

₹13 L/yr - ₹34 L/yr

Software Developer
25 salaries
unlock blur

₹8.6 L/yr - ₹15.5 L/yr

Technical Lead
22 salaries
unlock blur

₹21 L/yr - ₹35.5 L/yr

Explore more salaries
Compare Community Brands with

Prime Focus Technologies

3.3
Compare

MapmyIndia

3.6
Compare

Yodlee

3.9
Compare

Bravura Solutions

3.9
Compare
write
Share an Interview