Senior developer Interview Questions | Glassdoor.co.nz

Senior developer Interview Questions

54

senior developer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

Draw on the paper a deadlock.

2 Answers

public class TestDeadlockExample1 { public static void main(String[] args) { final String resource1 = "ratan jaiswal"; final String resource2 = "vimal jaiswal"; // t1 tries to lock resource1 then resource2 Thread t1 = new Thread() { public void run() { synchronized (resource1) { System.out.println("Thread 1: locked resource 1"); try { Thread.sleep(100);} catch (Exception e) {} synchronized (resource2) { System.out.println("Thread 1: locked resource 2"); } } } }; // t2 tries to lock resource2 then resource1 Thread t2 = new Thread() { public void run() { synchronized (resource2) { System.out.println("Thread 2: locked resource 2"); try { Thread.sleep(100);} catch (Exception e) {} synchronized (resource1) { System.out.println("Thread 2: locked resource 1"); } } } }; t1.start(); t2.start(); } }

Deadlock in java is a part of multithreading. Deadlock can occur in a situation when a thread is waiting for an object lock, that is acquired by another thread and second thread is waiting for an object lock that is acquired by first thread. Since, both threads are waiting for each other to release the lock, the condition is called deadlock.

Use a single sql statement to retrieve data from six tables. join statement should be used in this case.

1 Answer

Experience about my previous work

1 Answer

Experience

1 Answer

Write a code for Weighted Average of a given score and weight

1 Answer

How to develop / design cross platform applications with or without native code.

1 Answer

Describe the methodologies you use for developing software and how do you work with your team members.

1 Answer

Previous work case studies

1 Answer

**How does a hash table or associative array work?

1 Answer

Talk about your most stressful situation

1 Answer
110 of 54 Interview Questions