28-06-2013
- Difference between overloading and overridin ?
- Difference between Vector and ArrayList ?
- Difference between Set and List ?
- How to make a class immutable in java?
- What is generic in java ?
- What about hashCode ? Detailed description of HashCode ?
- Types of statement in java ?
- How to load a class in java ? Define the complete Code ? Class.forName("sun.jdbc.odbc.JdbcOdbc");?Types of drivers in JDBC ?
- How to use callable Statement in java ?
- What id DI in Spring ?
- Types of Dependency Injection in Spring ?
- Why spring is lightWeight ?
- What is the Hibernate configuration file ?
- Hibernate ONE-TO-ONE mapping configuration ?
List Of Interview Questions:
- Can Java thread object invoke start method twice?
- Give the list of Java Object class methods.
- Can we call servlet destory() from service()?
- Can we override static method?
- Can you list serialization methods?
- What is the difference between super() and this()?
- How to prevent a method from being overridden?
- Can we create abstract classes without any abstract methods?
- How to destroy the session in servlets?
- Can we have static methods in interface?
- What is transient variable?
- Incase, there is a return at the end of try block, will execute finally block?
- What is abstract class or abstract method?
- What is default value of a boolean?
- When to use LinkedList or ArrayList?
- What is daemon thread?
- Does each thread in java uses seperate stack?
- What is the difference between Enumeration and Iterator?
- Find out switch statement output.
- Does system.exit() in try block executes finally block?
- What is fail-fast in java?
- What is final, finally and finalize?
- In java, are true and false keywords?
- What are the different session tracking methods?
- What is the purpose of garbage collection?
- What are the types of ResultSet?
- What is difference between wait and sleep methods in java?
- What is servlet context?
- What happens if one of the members in a class does not implement Serializable interface?
- What is race condition?
- How to get current time in milli seconds?
- How can you convert Map to List?
- What is strictfp keyword?
- What is System.out in Java?
- What is difference between ServletOuptputStream and PrintWriter?
- What is java static import?
- When to use String and StringBuffer?
- What is difference between StringBuffer and StringBuilder?
- What is wrapper class in java?
- Is Iterator a Class?
- What is java classpath?
- Can a class in java be private?
- Is null a keyword in java?
- What is the initial state of a thread when it is started?
- What is the super class for Exception and Error?
- What is Class.forName()?
- Can interface be final?
- What is the difference between exception and error?
- What is default value of a local variables?
- What is local class in java?
- Can we initialise uninitialized final variable?
- Can we declare abstract method as final?
- Can we have finally block without catch block?
- What is pass by value and pass by reference?
- Can we declare main method as private?
- What is the difference between preemptive scheduling and time slicing?
- Can non-static member classes (Local classes) have static members?
- What are the environment variables do we neet to set to run Java?
- Can you serialize static fields of a class?
- What is the difference between declaring a variable and defining a variable?
- Where can we use serialization?
- What modifiers are allowed for methods in an Interface?
- What is the purpose of Runtime and System class?
- Which one is faster? ArrayList or Vector? Why?
- What is the difference between static synchronized and synchronized methods?
- What is the order of catch blocks when catching more than one exception?
- What is the difference between the prefix and postfix forms of the increment(++) operator?
- What is hashCode?
- What is the difference between Hashtable and HashMap?
- What are the restrictions when overriding a method?
- What is the use of assert keyword?
- What is adapter class?
- What is difference between break, continue and return statements?
- What is the difference between while and do-while statements?
- When does the compiler provides the default constructor?
List Of All Interview Programs:
- Find out duplicate number between 1 to N numbers.
- Find out middle index where sum of both ends are equal.
- Write a singleton class.
- Write a program to create deadlock between two threads.
- Write a program to reverse a string using recursive algorithm.
- Write a program to reverse a number.
- Write a program to convert decimal number to binary format.
- Write a program to find perfect number or not.
- 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.
- Write a program to sort a map by value.
- Write a program to find common elements between two arrays.
- How to swap two numbers without using temporary variable?
- Write a program to print fibonacci series.
- 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.
Java Search Algorithms
Search algorithm is an algorithm for finding an item with specified properties among a collection of items. The items may be stored individually as records in a database or may be elements of a search space defined by a mathematical formula or procedure, such as the roots of an equation with integer variables or a combination of the two.You can find examples for different types of search algorithms here.Java Search Algorithms Examples
No comments:
Post a Comment