Sei sulla pagina 1di 2

9/6/2014

List of all java interview algorithms - Java Interview Programs

JAVA EXAMPLE PROGRAMS


Home

JAVA INTERVIEW PROGRAMS

Find us on Facebook

Fundamentals
Java Sample Programs

In this section, we are giving few java interview programs faced by some of my friends. If you come across any
questions, post it to me. I can provide solutions. You can email me at java2novice@gmail.com.

Constructors

Like

Exception Handling
Threads
String Functions

Find out duplicate number between 1 to N numbers.

Generics

Find out middle index where sum of both ends are equal.

Collections & Util Package

Write a singleton class.

Nested Classes

Write a program to create deadlock between two threads.

Networking

Write a program to reverse a string using recursive algorithm.

File I/O Operations


Java Annotations
JDBC Examples
Spring Framework
Java Interview Questions

Knowledge Centre

Write a program to convert decimal number to binary format.

Interface and its usage

Write a program to find perfect number or not.

Interface is similar to a class whic


contain method's signature only bu
and it is a formal set of method an
declarations that must be defined
that implements it. Interfaces are
declaring methods that one or mo
expected to implement, capturing
between unrelated classes withou
class relationship and determining
programming interface without re
actual body of the class.

Write a program to implement ArrayList.


Write a program to find maximum repeated words from a file.
Wrie a program to find out duplicate characters in a string.
Write a program to find top two maximum numbers in a array.

JUnit

Write a program to sort a map by value.

Java Design Patterns

Write a program to find common elements between two arrays.

Search Algorithms

How to swap two numbers without using temporary variable?

Sorting Algorithms

Write a program to print fibonacci series.

JBoss Configurations

Facebook social plugin

Write a program to reverse a number.

Java Interview Programs

Data Structures

3,905 people like Java Sample Programs

LIST OF ALL INTERVIEW PROGRAMS:

Write a program to find sum of each digit in the given number using recursion.
Write a program to check the given number is a prime number or not?
Write a program to find the given number is Armstrong number or not?
Write a program to convert binary to decimal number.
Write a program to check the given number is binary number or not?
Write a program for Bubble Sort in java.
Write a program for Insertion Sort in java.
Write a program to implement hashcode and equals.
How to get distinct elements from an array by avoiding duplicate elements?
Write a program to get distinct word list from the given file.
Write a program to get a line with max word count from the given file.
Write a program to convert string to number without using Integer.parseInt() method.
Write a program to find two lines with max characters in descending order.
Write a program to find the sum of the first 1000 prime numbers.
Find longest substring without repeating characters.
Write a program to remove duplicates from sorted array.

About Author

Most Visited Pages

Other Interesting Sites

Java Interview Questions

Techie Park

passionate about technologies. All examples given here are as

How to Create Java Custom Exception

Wikipedia

simple as possible to help beginners. The source code is compiled

Java Interview Programs

query2nataraj.blogspot.in

and tested in my dev environment.

Java StringTokenizer With Multiple De-limiters Sample Code

My name is Nataraja Gootooru, programmer by profession and

http://www.java2novice.com/java-interview-programs/

1/2

9/6/2014

List of all java interview algorithms - Java Interview Programs

If you come across any mistakes or bugs, please email me at

Java Constructor Chaining Examples

java2novice@gmail.com or you can comment on the page.

Spring Framework Examples


Write a program to find maximum repeated words from a file.
Java Data Structures

Reference: Java Platform Standard Ed. 6 - API Specification | Java is registered trademark of Oracle.
Privacy Policy | Copyright 2014 by Nataraja Gootooru. All Rights Reserved.

http://www.java2novice.com/java-interview-programs/

2/2

Potrebbero piacerti anche