Programmer Interviews

Programmer Interview Questions

Programmers are responsible for developing code to build products. In an interview context, expect to be quizzed on your technical skills through different kinds of computing problems or brainteasers. The specific questions you are asked will depend on what type of programming position you are looking for. Try researching a specific discipline such as web development, application development, or system development.

22,441 programmer interview questions shared by candidates

What are data types? What is mutable and immutable? Write a small program to create a list or array and perform basic operations using two variable How would you secure an application from cyber attacks? What are the key measures to protect a system or network?
avatar

Programmer Analyst

Interviewed at Cognizant

3.6
Oct 14, 2025

What are data types? What is mutable and immutable? Write a small program to create a list or array and perform basic operations using two variable How would you secure an application from cyber attacks? What are the key measures to protect a system or network?

package com.interview; public class Threading { int counter; class Mythread extends Thread{ @Override public void run(){ for(int i=0; i < 10000; i++) counter++; System.out.println("run = " + counter); } } public static void main(String[] args) throws InterruptedException { // TODO Auto-generated method stub Threading a = new Threading(); Mythread t1 = a.new Mythread(); t1.start(); t1.join(); System.out.println("" + a.counter); } }
avatar

Java Programmer

Interviewed at Barclays

3.9
Jan 15, 2010

package com.interview; public class Threading { int counter; class Mythread extends Thread{ @Override public void run(){ for(int i=0; i < 10000; i++) counter++; System.out.println("run = " + counter); } } public static void main(String[] args) throws InterruptedException { // TODO Auto-generated method stub Threading a = new Threading(); Mythread t1 = a.new Mythread(); t1.start(); t1.join(); System.out.println("" + a.counter); } }

Viewing 921 - 930 interview questions

Glassdoor has 22,441 interview questions and reports from Programmer interviews. Prepare for your interview. Get hired. Love your job.