-->

EveryBrickMatters

Reverse a String in Java using Recursion

public class ReverseOfString {               public static void main(String args[])        {               String str = ...


What is the difference between List and Set?

What is the difference between List and Set? List can contain duplicate elements whereas Set does not allow duplicate elements. List ma...


Custom object as key in Collection

What do you need to do to use a custom object as key in Collection classes like Map or Set? Answer : If you are using any custom object ...


ArrayList Vs Vector

ArrayList and Vector both implements List interface and maintains insertion order. 1) ArrayList is  not synchronized  whereas   Vector is...


Iterator Vs Enumeration VS ListIterator in Java Collection

Iterator , Enumeration and ListIterator are interface which  are used to iterate over the collections in Java. Iterator provide iterato...


SQL Interview Question Set 2

Write a SQL query to print the Name of the managers with id who are having more than 3 employee under him.  employees(EMPLOYEE_ID,FIRST_N...


Script to print the last modification time of file if exists

Write a script that accepts a file name as arguments and display the last modification time if the file exists and a suitable message if it...


"grep" command interview Questions

We have three files in our current directory as below : Newfile.txt This is ishant gaurav I love to play cricket I am bit confused no...