Upload Button Icon Add office photos

Salesforce

Compare button icon Compare button icon Compare

Filter interviews by

Salesforce Senior Java Developer Interview Questions and Answers

Updated 20 Jul 2024

Salesforce Senior Java Developer Interview Experiences

Interview questions from similar companies

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I was interviewed in May 2024.

Round 1 - Coding Test 

Questions based on Data Structures. Could not complete.

Interview experience
5
Excellent
Difficulty level
Hard
Process Duration
-
Result
Not Selected

I applied via Job Portal and was interviewed in Feb 2024. There was 1 interview round.

Round 1 - Technical 

(1 Question)

  • Q1. Kth node from behind for linked list
  • Ans. 

    Find the Kth node from the end of a linked list

    • Traverse the linked list to find the length of the list

    • Calculate the position of the Kth node from the beginning

    • Traverse the list again to find the Kth node from the end

  • Answered by AI

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
-

I applied via Naukri.com and was interviewed in Feb 2024. There was 1 interview round.

Round 1 - Technical 

(2 Questions)

  • Q1. Java 8 Features
  • Q2. Reflection API ?
Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. Basic Java and SQL query

I was interviewed in Oct 2021.

Round 1 - Video Call 

(3 Questions)

Round duration - 60 Minutes
Round difficulty - Medium

This round had 2 questions of DSA where I was asked to first explain my approach and then code it as well in a production ready manner . After that , I was asked some questions related to Operating Systems and Java .

  • Q1. 

    Remove the Kth Node from the End of a Linked List

    You are given a singly Linked List with 'N' nodes containing integer data and an integer 'K'. Your task is to delete the Kth node from the end of this Lin...

  • Ans. 

    Approach : 
    1) Maintain two pointers – reference pointer and main pointer. 
    2) Initialize both reference and main pointers to head. 
    3) First, move the reference pointer to n nodes from head.
    4) Now move both pointers one by one until the reference pointer reaches the end. 
    5) Now the main pointer will point to nth node from the end. 
    6) Return the main pointer.

    TC : O(N) where N=length of the Linked

  • Answered Anonymously
  • Q2. 

    Intersection of Linked List Problem

    You are provided with two singly linked lists containing integers, where both lists converge at some node belonging to a third linked list.

    Your task is to determine t...

  • Ans. 

    Approach :

    I) Using Hashing :

    Basically, we need to find a common node of two linked lists. So we hash all nodes of the first list and then check the second list.

    Note : Hash the nodes not the node value

    1) Create an empty hash set.
    2) Traverse the first linked list and insert all nodes' addresses in the hash set.
    3) Traverse the second list. For every node check if it is present in the hash set. If we find a node in the has...

  • Answered Anonymously
  • Q3. Can you explain the life cycle of a thread in Java?
  • Ans. 

    In Java, a thread always exists in any one of the following states. These states are:

    1) New
    2) Active
    3) Blocked / Waiting
    4) Timed Waiting
    5) Terminated

    Explanation of Different Thread States : 

    1) New: Whenever a new thread is created, it is always in the new state. For a thread in the new state, the code has not been run yet and thus has not begun its execution.

    2) Active: When a thread invokes the start() method, it ...

  • Answered Anonymously
Round 2 - Video Call 

(4 Questions)

Round duration - 60 Minutes
Round difficulty - Medium

This round also had 2 questions of DS/Algo where I coded one of them and then we switched our discussion to DBMS and OOPS ( particularly in Java ) .

  • Q1. 

    Merge Two Sorted Linked Lists Problem Statement

    You are provided with two sorted linked lists. Your task is to merge them into a single sorted linked list and return the head of the combined linked list.

    ...
  • Ans. 

    Approach 1 (Recursive) :

    1) Compare the head of both linked lists.
    2) Find the smaller node among the two head nodes. The current element will be the smaller node among two head nodes.
    3) The rest elements of both lists will appear after that.
    4) Now run a recursive function with parameters, the next node of the smaller element, and the other head.
    5) The recursive function will return the next smaller element linked with r...

  • Answered Anonymously
  • Q2. 

    LRU Cache Design Question

    Design a data structure for a Least Recently Used (LRU) cache that supports the following operations:

    1. get(key) - Return the value of the key if it exists in the cache; otherw...

  • Ans. 

    Answer : 

    Structure of an LRU Cache :

    1) In practice, LRU cache is a kind of Queue — if an element is reaccessed, it goes to the end of the eviction order
    2) This queue will have a specific capacity as the cache has a limited size. Whenever a new element is brought in, it
    is added at the head of the queue. When eviction happens, it happens from the tail of the queue.
    3) Hitting data in the cache must be done in constan...

  • Answered Anonymously
  • Q3. What is the difference between the DELETE and TRUNCATE commands in DBMS?
  • Ans. 

    Answer :

    DELETE command:

    1) This command is needed to delete rows from a table based on the condition provided by the WHERE clause.
    2) It can be rolled back if required.
    3) It maintains a log to lock the row of the table before deleting it and hence it’s slow.

    TRUNCATE command:
    1) This command is needed to remove complete data from a table in a database. It is like a DELETE command which has no WHERE clause.
    2) It removes com...

  • Answered Anonymously
  • Q4. What is the garbage collector in Java?
  • Ans. 

    Answer :

    1) Garbage Collection in Java is a process by which the programs perform memory management automatically.
    2) The Garbage Collector(GC) finds the unused objects and deletes them to reclaim the memory. I
    3) In Java, dynamic memory allocation of objects is achieved using the new operator that uses some memory and the
    memory remains allocated until there are references for the use of the object.
    4) When there are no re...

  • Answered Anonymously
Round 3 - Video Call 

(2 Questions)

Round duration - 50 Minutes
Round difficulty - Medium

This round was inclined towards some Low Level Design Principles and some concepts from Java .

  • Q1. Design a Railway Reservation System.
  • Ans. 

    Tip 1: Firstly, remember that the system design round is extremely open-ended and there’s no such thing as a standard answer. Even for the same question, you’ll have a totally different discussion with different interviewers.

    Tip 2:Before you jump into the solution always clarify all the assumptions you’re making at the beginning of the interview. Ask questions to identify the scope of the system. This will clear the in...

  • Answered Anonymously
  • Q2. Why is Java considered platform-independent while the Java Virtual Machine (JVM) is platform-dependent?
  • Ans. 

    JVM is platform dependent because it takes java byte code and generates byte code for the current operating system. So Java software is platform dependent but Java language is platform independent because different operating system have different JVMs.

  • Answered Anonymously

Interview Preparation Tips

Eligibility criteriaAbove 2 years of experienceAmdocs interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design,Java, OOPSTime required to prepare for the interview - 4 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 experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Campus Placement

Round 1 - Aptitude Test 

Question related to operating system and computer network

Round 2 - Technical 

(1 Question)

  • Q1. Traverse all child nodes in tree
  • Ans. 

    Traverse all child nodes in a tree data structure

    • Use depth-first or breadth-first traversal algorithms

    • Recursively visit each child node starting from the root node

    • Consider using a stack or queue data structure for traversal

    • Example: Traverse all nodes in a binary tree

  • Answered by AI
Round 3 - Technical 

(1 Question)

  • Q1. Question related to cloud and oops
Round 4 - Technical 

(1 Question)

  • Q1. Question related to my background and how web site work
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

Arrays and strings - 90 mins

Round 2 - Coding Test 

Create Modules, railway reservation system - 60 mins

Round 3 - Technical 

(5 Questions)

  • Q1. Difference between hashmap and hasptable
  • Q2. Why typescript over javascript
  • Q3. Find the percentage of increace in the quantity of item after making it price 20% extra
  • Q4. What is normalization
  • Q5. Date and time api available
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Campus Placement and was interviewed in Oct 2024. There were 3 interview rounds.

Round 1 - Coding Test 

In first round 4 coding question like 1 dsa 2 database and one is api and question is very simple . coding round was conducted in hackerrank

Round 2 - Technical 

(2 Questions)

  • Q1. DSA QUESTION LIKE TREE AND GRAPH
  • Q2. DP AND SORTING APPROACH
Round 3 - Coding Test 

Again same but dsa question and oops concept in deep level

Interview Preparation Tips

Interview preparation tips for other job seekers - good knowledge in dsa , database , programming thats it
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

LeetCode , hard questions on dynamic programming, graphs, and more.

Round 2 - Coding Test 

DSA, Cn, os, DBMS, ML

Round 3 - One-on-one 

(2 Questions)

  • Q1. Is relocation a possibility for this position?
  • Q2. Senior role is there

Salesforce Interview FAQs

How many rounds are there in Salesforce Senior Java Developer interview?
Salesforce interview process usually has 2 rounds. The most common rounds in the Salesforce interview process are Coding Test and Case Study.

Tell us how to improve this page.

Salesforce Senior Java Developer Interview Process

based on 1 interview

Interview experience

5
  
Excellent
View more
Technical Support Engineer
881 salaries
unlock blur

₹12 L/yr - ₹25 L/yr

Technical Consultant
319 salaries
unlock blur

₹13.8 L/yr - ₹30 L/yr

Member Technical Staff
289 salaries
unlock blur

₹18.8 L/yr - ₹60 L/yr

Senior Member of Technical Staff
242 salaries
unlock blur

₹30 L/yr - ₹100.4 L/yr

Senior Technical Consultant
228 salaries
unlock blur

₹23 L/yr - ₹45 L/yr

Explore more salaries
Compare Salesforce with

SAP

4.2
Compare

Zoho

4.3
Compare

Oracle

3.7
Compare

Adobe

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