Find Interview Questions for Top Companies
Ques:- Sort the linklist by node whose alternate nodes are already sorted
Right Answer:
To sort a linked list where alternate nodes are already sorted, follow these steps:

1. Split the linked list into two separate lists: one for the nodes at even indices and another for the nodes at odd indices.
2. Sort each of these two lists individually.
3. Merge the two sorted lists back together by alternating nodes from each list.

Here’s a simple implementation in Python:

```python
class Node:
def __init__(self, data):
self.data = data
self.next = None

def sort_alternate_linked_list(head):
if not head or not head.next:
return head

# Split the list into two lists
even_head = even_tail = head
odd_head = odd_tail = head.next
current = head.next.next
index = 0

while current:
if index % 2 == 0:
even_tail.next = current
even_tail = even_tail.next
else:
Ques:- Print all permutations of string
Right Answer:
```python
def permute(s, l, r):
if l == r:
print(s)
else:
for i in range(l, r + 1):
s_list = list(s)
s_list[l], s_list[i] = s_list[i], s_list[l] # swap
permute(''.join(s_list), l + 1, r)

string = "abc"
permute(string, 0, len(string) - 1)
```
Ques:- How does fb mail work ?
Asked In :-
Right Answer:
Facebook Mail, or Facebook Messages, allows users to send and receive messages through their Facebook accounts. It integrates various communication forms, including text messages, emails, and chat. When a user sends a message, it is stored on Facebook's servers and can be accessed through the Facebook interface or the Messenger app. Users can also send messages to non-Facebook users via their email addresses, which are converted into Facebook messages.
Ques:- How do fb messages work ?
Asked In :- Rapidsoft Technologies,
Right Answer:
Facebook messages work by using a client-server architecture where users send messages through the Facebook Messenger app or website. The messages are transmitted over the internet to Facebook's servers, which store and manage the messages. When the recipient is online, the message is delivered in real-time, and if they are offline, it is stored until they log in. Users can also send multimedia content, and the system supports features like read receipts and typing indicators.
Ques:- What exactly happens when you add someone as your friend ?
Asked In :-
Ques:- Given a hashmap M which is a mapping of characters to arrays of substitute characters, and an input string S, return an array of all possible mutations of S (where any character in S can be substituted with one of its substitutes in M, if it exists). What is the time complexity? What is the space complexity? Can you optimize either? Example input: M = { f: [F, 4], b: [B, 8] } S = fab Expected output: [fab, Fab, 4ab, faB, FaB, 4aB, fa8, Fa8, 4a8]
Ques:- Given an expression (in single variable) like 4x+13(x-(4x+x/3)) = 9, evaluate x The expression is a string and the variable is always x
Ques:- Given a list of integer numbers, a list of symbols [+,-,*,/] and a target number N, provide an expression which evaluates to N or return False if that is not possible. e.g. let the list of numbers be [1,5,5] and the target number is 9, one possible solution could be 5+5-1
Asked In :- fulcrum logic,
Ques:- Write a program to print the powerset. E.g. given this set {1,2,3}, it will print {},{1},{2},{3},{1,2},{1,3}, {2,3}, {1,2,3}
Asked In :- glowtouch technologies,
Ques:- Given a set of 2D points, some integer k, find the k points closest to the origin, (0,0)
Ques:- given a 2D array of 0 and 1. where each row is sorted. find the row with maximum no of 1 in minimum time complexcity


The Java skill section on takluu.com is designed for freshers, intermediate developers, and experienced professionals aiming to crack Java-based technical interviews with confidence. Java remains one of the most in-demand programming languages, and mastering it opens the door to countless opportunities in backend development, enterprise solutions, Android apps, and cloud-based platforms.

Our Java category covers everything from Core Java concepts like OOPs (Object-Oriented Programming), Data Types, Loops, and Exception Handling to Advanced Java topics including Collections Framework, Multithreading, JDBC, Servlets, JSP, Lambda Expressions, and Streams. We provide practical coding examples, real interview questions (with answers), and key concept explanations that interviewers commonly test.

Whether you’re applying for a role like Java Developer, Backend Engineer, or Full Stack Developer, this section ensures you understand the logic, syntax, and problem-solving approaches that matter in real-world interviews. You’ll also find scenario-based questions and discussions around design patterns, JVM internals, garbage collection, and performance tuning — areas often explored in senior-level interviews.

Each topic is structured to help you revise quickly and efficiently, with quizzes and mock interviews to assess your understanding. Our content is curated by experts who have worked with Java across different domains and keep the material aligned with current industry trends.

At Takluu, we believe in not just learning Java — but preparing to think in Java. Get ready to face interviews with clarity, confidence, and a deep understanding of what makes Java so powerful and reliable.

AmbitionBox Logo

What makes Takluu valuable for interview preparation?

1 Lakh+
Companies
6 Lakh+
Interview Questions
50K+
Job Profiles
20K+
Users