WE PROVIDE ALL

About Java Collections



Difference between ArrayList and LinkedList

ArrayList and LinkedList both implements List interface and maintains insertion order. Both are non synchronized classes.

But there are many differences between ArrayList and LinkedList classes that are given below.

ArrayList                                                                                          
1) ArrayList internally uses dynamic array to store the elements.
2) Manipulation with ArrayList is slow because it internally uses array.      
3) ArrayList class can act as a list only because it implements List only.
4) ArrayList is better for storing and accessing data.
5>Array List search operation is quicker than Linked List bcoz it is Index based system.
6)Removal or deletion in Linked List is quicker than ArrayList.
7)When huge amount of elements we are using it is better to adopt ArrayList.
8)In Linked List it takes Memory consumption for storing the pointers.

LinkedList:

  • LinkedList internally uses doubly linked list to store the elements.



  • If any element is removed from the array, all the bits are shifted in memory. Manipulation with LinkedList is faster than ArrayList because it uses doubly linked list so no bit shifting is required in memory.



  • LinkedList class can act as a list and queue both because it implements List and Deque interfaces.





When to Use:
a)ArrayList can be used for high acessing,Inserting and low manipulation.
b)LinkedList can be used for high manipulation and low accessing elements.


ABOUT STACK:

1)Stack follows the LIFO(Last in First Out)                                                                                            
2)peek,pop,push are the methods used in stack.
3)used for calculating postfix and prefix expressions.
4)

Map:

1)To get the elements we use entrySet()method.
2)In Map <k,v> type follows
3)we can set Map collection into anothercollection class easily by setting like
eg:set<Entry<key,value>> then it must take <k,v> in to a single value.
4)keySet()is used to display keys only.
5)For iteration HashMap must be as follows
Eg: for(Map.Entry entry:CollectionObject.entrySet()) to iterate.




HashMap:

1)It consists of <k,v> value pairs they must be stored.
2)hashMap is unSynchronized .
3)It allows only one null key and multiple null values.
4)Insertion order is not preserved up to java 1.7.

LinkedHashMap:

1)it implements Map Interface and extends HashMap Class.
2)Insertion order is maintained in LinkedHashMap.
3)Searching an element is quick in Linked Hashmap.

iteration in index order, allowing duplicates.
ArrayList should be used for random access get(i) or set(i,o) by index.
HashMap are good default choices when random access by element or keyis needed,and sequential access in element or key order is not needed.

Operation  LinkedList ArrayList HashMap   LinkedHashMap  TreeMap

Add(o)(last)  O(1)             O(1)a

Add(i,o)            O(d)        O(n-i)a

addFirst(o) O(1)

Put(k,v)                                                         O(1)a                    O(log n)

Remove(o) O(n)                                  O(n)            O(1)                   O(log n)

Remove(i) O(d)        O(n-i)

removeFirst() O(1)

Contains(o) O(n)         O(n)

ContainsKey(o)                                                   O(1)         O(log n)


ContainsValue(o)             O(n)           O(n)

indexOf(o) O(n)          O(n)

Get(i)       O(d)     O(1)


Set(i,o)       O(d) O(1)


Get(o)                                            O(1)         O(log n)







About this table tells the:

o(1): It is the constant time to complete the operation or task.



o(log n): Time Proportional to the logarthm of n means it takes to insert  2 elements in 1sec (or) 1 element in 2sec. the time taken directly propotional to the data set
          not so direct proprtional we dont tell how much it takes to do operation.



o(n): Suppose we take 2 elements it takes  2 sec for 100 elements it takes 100 seconds it depends on the dataset we are giving.



o(d): d is the distance from an index i to the nearest end of the list, that is min(i,n-i), for linked list adding and removing is fast bcoz their d is small.

       In ArrayList is fast for only the neat back end. where n-i is small.

o(1)a : Amortized Complexity means over a long sequence of operations the average time  it takes o(1), for single operation it could take o(n).







About Collection Structure in Java




About Collections in Java:

Collections is a java class that can store and retrieve the elements where you stored.

Collections is obtained from java.util Package.

In Collections  the Structure how the Collection is framed given Below.

1.   List                                      2. Queue                                     3. Set                      
   
   1.1   Array List                        2.1  Priority Queue                 3.1 Hash Set    
   1.2  Linked List                               2.1.1  Deque                                     3.1.1 Linked HashSet
   1.3   Vector                                       2.1.2 Array Deque                      3.2 Sorted Set  
          1.3.1   Stack                        2.2  BlockingQueue                           3.2.1  NavigableSet      
                                                    2.2.1   Priority Blocking Queue                    3.2.2  TreeSet
                                                  2.2.2 Linked Blocking Queue                       .



                                                   4.  Map
                                     
 4.1  HashMap                       4.2  WeakedHashMap               4.3 SortedMap             4.4 Dictionary
  4.1.1   Linked Hash Map        4.2.1 Identity HashMap            4.3.1 NavigableMap  4.4.1   HashTable
                                                                                                      4.3.2 TreeMap           4.4.2  Properties









Karnataka Staff Nurse Recruitment 2015

Karnataka state Government of  Examinations  Authority announced to invite Online application for the post of Staff Nurse.

Number of Posts: 1064

Job Location : Bangalore (Karnataka)

Starting Date to Apply through Online : 02/11/2015

Closing  Date to Apply through Online : 02/12/2015.

Last Date to Pay Fees :04/12/2015.

Job Details :

Post Name : Staff Nurse

Pay Scale : Rs. 176500-32000/-

Eligibility Criteria :

Educational Qualification :  Candidate must Posses the Qualified B.Sc./Diploma Nursing from a Govt recognized Institute also  possess a certificate in General Nursing Course of not to be less than 3 years and a certificate in Midwifery or Psychiatric Nursing course of not to be less than 6 months from a Govt recognized institute .Karnataka Nursing Council is Mandatory.

Nationality : Should be an Indian

Age Limit : 35 years

Age Relaxation :

For 2A,2B,3A&3B Category Candidates : 3 Years

For SC/ST Candidates : 5 Years

Application Fees : Candidates who belongs to General Merit and others  have to pay an amount of Rs. 500/- and who  belongs to SC/ST/Category-1 have to pay an amount of  Rs. 300/- through Specified Bank . Differently Abled candidates are exempted for paying fee.

How to Apply : Interested candidates may apply Online through  this website http://www.kea.kar.nic.in/ 


Important Links :

Detail Advertisement Link : http://kea.kar.nic.in/staffnurse/notification_staffnurse.pdf

Apply Online : https://cetonline.karnataka.gov.in/CETStaffnurse/%28S%28e5e4o543apeu3ztdsadv0gdq%29%29/Home.aspx

UPSSSC Recruitment 2015 for Subordinate Service Selection Commission

Uttar Pradesh Govt has been  released a notification for Subordinate Service Selection Commission (UPSSSC)  in Lucknow inviting the applications for the

Name of the Posts

1) Assistant Development Officer,

2)Industrial Co Supervisor, Assistant Sericulture Development Officer, District Prohibition and

3)Smajotthan Officer & Combined Lower Subordinate Services

Last Date to  Apply Online : 04 November 2015. (Extended to 11 November 2015).


No . of Posts : 296

Advt No. : 18-EXAM /2015

Job Location : Uttar Pradesh

About Jobs :


Post Name : Assistant Development Officer

No. of Vacancy : 23 Posts
Pay Scale : Rs.5200-20200/-
Grade Pay : Rs.2800/-

Post Name : Industrial Co Supervisor
No. of Vacancy : 42 Posts
Pay Scale : Rs.5200-20200/-
Grade Pay : Rs.2000/-

Post Name : Assistant Sericulture Development Officer
No. of Vacancy : 25 Posts
Pay Scale : Rs.5200-20200/-
Grade Pay : Rs.2800/-

Post Name : District Prohibition and Smajotthan Officer
No. of Vacancy : 10 Posts
Pay Scale : Rs.5200-20200/-
Grade Pay : Rs.2800/-

Eligibility Criteria :


Educational Qualification :

For Assistant Development Officer : Candidates Must Posses the  Bachelors degree from a University established by law in India or a qualification recognized by Government.

For Industrial Co Supervisor : Bachelor’s degree and training in cooperation with recognized institute.

For Assistant Sericulture Development Officer : B.Sc. (biology), in which a paper of entomology or M.Sc  (agriculture) qualification or equivalent recognized by the Government.

For  District Prohibition and Smajotthan Officer : Candidate must be Graduated from the University established by Law in India or a qualification recognized as equivalent by the Government.

Nationality : Indian

Age Limit : 18 to 40 Years (As on 01.07.2015)

Selection Process : Selection will be through Written Examination & Interview.

Application Fee :

For General : Rs. 185/-

Other Backward Class : Rs. 185/-

Scheduled Caste/ Scheduled Tribe(SC's/ST's) : Rs. 95/-

PWD Category : Rs. 25/-

Candidates should be submitted  their fee through State Bank  Challana  Only.

How to Apply : Interested Candidates may apply Online through UPSSSC website 

 Click here to apply : http://upsssc.gov.in 


Important Dates to Remember :

Starting Date For Submission Of Online Application : 14.10.2015
Last Date to apply through  Online Application (Part-I) : 06.11.2015
Last Date to submit  Online Application (Part-II) : 11.11.2015
Last  Date for receipt of Application Fee : 09.11.2015

Important Links :


Detail Advertisement Link :
http://upsssc.gov.in/OuterPages/View_Enclosure.aspx?ID=706&flag=H&FID=1107

Apply Online : http://upsssc.gov.in/AllNotifications.aspx

Important Notice : http://upsssc.gov.in/View_Notices.aspx?ID=news&N=90

Subinspector of Police Recruitment 2015 Karnataka




Karnataka Government of Police inviting the Applications from the Men and Women for the Sub-Inspector of Police  in this November 2015.All the Best for all the Candidates who are applying for this Job.

NO of Posts: 233

Job Location:Karnataka

Pay scale: 20,000-36,300/-

Eligibility Criteria:

Candidate should Posses the Degree  from any University(or) its Equivalent.

Should be an Indian.

Age Criteria:

For General Category:from 21 -26 Years.

For SC/ ST/ CAT-01/ 2A/ 2B/ 3A/ 3B category : 21 to 28 years.

About Recruitment Process:

Selecting the Candidates with their performance in Written Test, Endurance and Physical Standard Test.

Details  About Paying Fee:

Candidate who are willing to apply for the SubInspector of Posts should have to pay their fee in the form of  challana in State Bank Of Mysore or in State Bank of Hyderabad.

For General should have to pay 250/-

For SC/ST/PWD Candidates have to pay amount of 100/-

Application for the SubInspector of Police Visit the www.ksp.gov.in.

Inviting the Applications  through online from :08-10-2015.

Closing Date of Applications through Online: 06-11-2015.

Last date to Pay Fee: 07-11-2015.

Detail Advertisement Link :

http://psinhk15.ksponline.co.in/PDF/PSI_Civil__Notification_2015_16.pdf

Apply Online : http://psinhk15.ksponline.co.in/Default.aspx

An Example Program usingDiv tag in Html

HTML 


<!DOCTYPE html>
<html>
<head>
<title> </title>


</head>
<body>

<div  style="background-color:yellow;width:1000px;height:1000px;dispay:block;clear:both;margin: 0 auto;">
        <div style="height:200px; border:2px solid green;">

        <div  style="height:100px;width:300px;border:2px solid blue;margin:10px 10px 10px 10px; float:left; ">


</div>

<div  style="height:100px;width:300px;border:2px solid blue;margin:10px 10px 10px 10px; float:left; ">


</div>

<div  style="height:100px;width:300px;border:2px solid blue;margin:10px 10px 10px 10px;float:left;">


</div>
       
</div>


  <div style="width:998px; border:1px solid black;" >
                          <div style="height:790px;width:200px; border:2px solid black;float:left;">

   

    </div>


                            <div style="width:163px;height:263px;float:left;border:1px solid green; ">




</div>
<div style="width:155px;height:263px;float:left;border:1px solid green; ">




</div>
<div style="width:155px;height:263px;float:left;border:1px solid green; ">




</div>
<div style="width:155px;height:263px;float:left;border:1px solid green; ">




</div>

<div style="width:155px;height:263px;float:left;border:1px solid green; ">



</div>
<div style="width:163px;height:260px;float:left;border:1px solid green; ">




</div>
<div style="width:155px;height:260px;float:left;border:1px solid green; ">




</div>
<div style="width:155px;height:260px;float:left;border:1px solid green; ">




</div>
<div style="width:155px;height:260px;float:left;border:1px solid green; ">




</div>

<div style="width:155px;height:260px;float:left;border:1px solid green; ">




</div>
<div style="width:163px;height:260px;float:left;border:1px solid green; ">




</div>
<div style="width:155px;height:260px;float:left;border:1px solid green; ">




</div>
<div style="width:155px;height:260px;float:left;border:1px solid green; ">




</div>
<div style="width:155px;height:260px;float:left;border:1px solid green; ">



</div>

<div style="width:155px;height:260px;float:left;border:1px solid green; ">


</div>


   </div>

   

</div>


</div>

RRB Recruitment 2015 For Junior Engineer, Depot Material Superintendent, Chemical & Metallurgical Assistant , Senior Section Engineer, Chief Material Depot Superintendent

RRB  Recruitment 2015 For Junior Engineer, Depot Material Superintendent, Chemical & Metallurgical Assistant , Senior Section Engineer, Chief Material Depot Superintendent


Now Government of India in Railways  is now released a Notification  for the Students who are awaiting to grab a opportunity to get a Job in Government .
In Modern Days it is a good Job in the Society because Railways is a Prestigious Sector to grow our Careers to lead a good life.





Categories Of Posts:

1) Junior Engineer

2) Depot Material Superintendent

3) Chemical & Metallurgical  Assistant

4) Senior Section Engineer

5)  Chief  Material Depot Superintendent


Important Dates:

Starting Date to Apply for RRB (as per RRB Notification) : 27/06/2015

Closing Date to Apply for RRB(as per RRB Notification):  26/07/2015

Qualifications: 

  •  Degree in a combination of any sub-streams in basic Stream in Automobile Engineering/Civil Engineering/Communication Engineering/Electrical Engineering/Eletronics Engineering/Industrial Engineering/Information Engineering/Instrumentation & Control Engineering/Machining Engineering/Manufacturing Engineering/Mechatronics Engineering/Production Engineering/Tool & Die Making Engineering/Tool & Machining Engineering (OR) 
  • Degree in Automobile Engineering/Civil Engineering/Communication Engineering/Electrical Engineering/Eletronics Engineering/Industrial Engineering/Information Engineering/Instrumentation & Control Engineering/Chemical Engineering /Mettalurgy/Machining Engineering/Manufacturing Engineering/Mechatronics Engineering/Production Engineering/Tool & Die Making Engineering/Tool & Machining Engineering.(OR)
  • B.Sc in Civil Engineering for 3 Years Duration.(OR)
  •  Diploma in  in a combination of any sub-streams in basic Stream in Automobile Engineering/Civil Engineering/Communication Engineering/Electrical Engineering/Eletronics Engineering/Industrial Engineering/Information Engineering/Instrumentation & Control Engineering/Machining Engineering/Manufacturing Engineering/Mechatronics Engineering/Production Engineering/Tool & Die Making Engineering/Tool & Machining Engineering.(OR)
  • Diploma in Automobile Engineering/Civil Engineering/Communication Engineering/ElectricalEngineering/EletronicsEngineering/IndustrialEngineering/ InformationEngineering/Instrumentation & Control Engineering/Chemical Engineering/Machining Engineering/Manufacturing Engineering/Mechatronics Engineering/Production Engineering/Tool & Die Making Engineering/Tool & Machining Engineering.  (OR)
  • M.Sc in Chemistry/Applied Chemistry/ Electronics.

Pay-Scale

 For  Junior Enginneer, Depot Material Superintendent, Chemical & Metallergical  Assistant must pay a Salary Amount of 9,300-34,800 GP-4,200/


For Senior Section Engineer ,Chief  Material Depot Superintendent must Pay an Amount of
 Rs/9,300-34,800 GP- 4,600/-

Exam Fee:

 No examination fee for candidates who belongs to SC/ST/Ex-Servicemen / Women/ Minorities/ Persons with Disabilities/Economically backward classes. For UR/OBC male candidates not entered into this Category they have to pay an amount of examination fee is 100/- .

Note :

Applicants of more than one group is applied their lead to rejection of all the applications you applied.

If you need to know More Information about this Notification visit the site

To Apply:

Click on the site www.rrbonlinereg.co.in  to Apply.












Haryana SSC Recruitment 2015

Haryana Staff Selection Commission  reffered as (HSSC) inviting the  Applications for the posts of Staff Nurse, Radiographer, Pharmacist, Dental Hygienist, Dietician, Sister Tutor, MPHW (Male, Female), Laboratory Technician, Operation Theatre Assistant, Storekeeper, Ophthalmic Assistant, Laboratory Attendant, Laboratory Technician (Malaria), Insect Collector, Tuberculosis Health Visitor vacancies on direct recruitment basis.



Job Location : Panchkula  in Haryana

Job Details :


Name of the Posts :

Staff Nurse Posts : 912

Radiographer  Posts: 122

Pharmacist Posts : 71

Dental Hygienist Posts : 22

Dietician  Posts: 07

Sister Tutor Posts : 04

MPHW (Male) Posts: 934

Laboratory Technician  : 180

MPHW (Female) Posts: 300

Operation Theatre Assistant : 112

Storekeeper Posts : 88

Ophthalmic Assistant  Posts: 46

Laboratory Attendant Posts : 39

Laboratory Technician (Malaria)  Posts: 26

Insect Collector Posts : 10

Tuberculosis Health Visitor Posts : 08

Total No.of Posts : 2881

Eligibility Criteria :

Educational Qualification :

Staff Nurse : Candidate should be Qualified in B.Sc (Hons) Nursing or B.Sc (Post Basic) Nursing OR Diploma in General Nursing with Midwife Training from a recognized institute/University and A division Nurse (with midwife training) registered with Haryana Nurses Registration Council.

 For MPHW :Passed their  10+2 with Biology or Science and Multipurpose Health Workers Training Course from an Institution approved by Haryana state  Government.

 For Radiographer post :Candidate  who have qualified their  Matric with Science (Physics & Chemistry) and Radiographer’s Diploma from the Medical College, Rohtak or any other recognized  Institution.

Note : All others post qualification as per Official Notification.

Nationality : Indian

Age Limit : 17 to 42 years

Selection Process : Selection will be based on  their performance written examination/ interview.

Application Fee :

Post 1 to 6 : Candidates have to pay their fee of Rs. 150/- for General (Male/ Female), Rs. 75/- for General (Female of Haryana resident only), Rs. 35 for male of SC/ BC/ SBC/ EBPG candidates of Haryana State only, Rs. 18/- for Female of SC/ BC/ SBC/ EBPG candidates of Haryana State only.

 Post 7 to 16 : Candidates have to pay Rs. 100/- for Gen (Male/ Female), Rs. 50/- for Gen (Female of Haryana resident only), Rs. 25 for male of (SC/ BC/ SBC/ EBPG) candidates of Haryana State only, Rs. 13/- only  for Female of SC/ BC/ SBC/ EBPG candidates of Haryana State only.
Candidates have to pay the fee through Net banking or e-Challan from any branch of State Bank of India, State Bank of  Patiala, Punjab National Bank and IDBI Bank after paying the fee after 48 hours apply for online application form.

How to Apply : Interested candidates may apply online through  www.hssc.gov.in.

Important Dates to Remember :

Starting Date for Submission Of Online Application : 10.07.2015
Last Date For Submission Of Online Application : 31.07.2015
Last Date for Submission of Application Fee : 04.08.2015
Important Links :

Detail Advertisement Link : http://www.hssc.gov.in/writereaddata/Advertisements/16_1_1_Health%20Advt.%202015.doc

Apply Online : http://onlinehssc.in/

Air India Recruitment 2015

Air India Air Transport Services Limited (AIATSL) inviting the  applications for the post of Customer Agent, Senior Customer Agent & Security Agent for ground duties at the Airports / stations on a fixed term contract basis.

Job Location : Chandigarh & Delhi

Job Details :

Post Name : Customer Agent
No of Posts : 80 Posts
Pay Scale : Rs. 13800/- (Per Month)
Post Name : Senior Customer Agent
No of Posts : 20 Posts
Pay Scale : Rs. 17250/- (Per Month)

Post Name : Security Agent
No of Posts: 200 Posts
Pay Scale : Rs. 13800/- (Per Month)

Name of the Region/ Station for Security Agent :

Northern Region : 68 Posts

Delhi : 132 Posts

Eligibility Criteria :


Educational Qualification :

For Customer Agent : Candidate should be Passed their   Graduate in any discipline/faculty (minimum 3 year's duration) from a recognized University with knowledge on basic computer operations.

For Senior Customer Agent : Candidate should be passed their Graduate in any discipline/faculty (minimum 3 year's duration) from a recognized University with knowledge of basic computer operations with 5 Year's experience as Customer Agent working at any Airport and profession in Passenger Handling.

For Security Agent : Candidate should be passed their Graduate in any discipline (minimum 3 year's duration) from a recognized University with ability to speak Hindi, English and conversant to a local language.

Nationality : Indian

Age Limit :

General Category : 28 years
OBC Category : 31 years
SC/ST Category : 33 years

Selection Process : Selection will be based on  their performance in Group Discussion, Personal Interview  and in the Pre-Employment Medical Examination.

Application Fee :
Candidates who are willing to apply for these jobs have to pay an  Application Fee of Rs.500/- by means of a Demand Draft in favour of “Air India Air Transport Services Ltd.”, should be payable at Mumbai, No fees to be paid by Ex-servicemen / candidates belonging to SC/ST communities.  Write your Full Name on the back  of the Demand Draft.

How to Apply

Interested candidates apply  for Interview along with a  recent  coloured passport size photograph of the full face should be pasted neatly in the space provided in the Application Form and Self-attested copies of supportive documents in respect of Educational / Technical Qualifications,At the time of the Selection Process,Original Certificates will be required to be brought along for verification purpose only, 

Venue of Interview for  the posts of Customer Agent & Senior Customer Agent: At  AKSIP School, Near Motor Market, Sector-45, Burail, Chandigarh – 160 047.

Venue of Interview for Security Agent :  Tansit Flats, Near Water Tank, Air India Housing Colony Play Ground, Vasant Vihar, New Delhi 110 057

Important Dates to Remember :

Walk- in- Interview for Customer Agent & Senior Customer Agent : on the Date of  29.06.2015 at 09.00 a.m. to 12.00 Noon.
Walk- in- Interview Security Agent : on the Date 13.07.2015 at 08.00 a.m. to 11.00 a.m.

Important Links :

Detail Advertisement & Application Form Link : http://www.airindia.in/writereaddata/Portal/career/208_1_recruitment-at-chandigarh-delhi-10-June-2015.pdf

IDBI Recruitment 2015







IDBI Bank Ltd. inviting the  Application for the posts  Assistant Manager selecting candidates  IDBI  in Manipal School of Banking, Bangalore for 1 year in Post Graduate Diploma in Banking and Finance (PGDBF).


Job Location : All India

Job Details :

Post Name : Assistant Manager
No of Posts : 500 Posts
Pay Scale :  Rs. 14400-40900/-

Eligibility Criteria :


Educational Qualification : Candidates should have Completed their  Graduation from a recognised University.

Nationality : Indian
Age Limit : 20 to 28 years as on 01.06.2015.

Age of Relaxation :

For Scheduled Caste/Scheduled Tribe : 5 years
 For Other Backward Classes : 3 years
 For Persons With Disability : 10 years

Selection process :

 The selection process will comprise of Online Test then after face personal interview.

Application Fee :

For SC/ST/PWD candidates : Rs. 150/-
For All others candidates : Rs. 700/-

Payment Process:

The payment can be made using Online through  only  via Master/ Visa Debit or Credit Card or through internet banking.

How to Apply : Candidates are required to apply online through IDBI website www.idbi.com between 10.06.2015 to 24.06.2015.

Important Dates to Remember :

Starting Date to Submit Online Application : 10.06.2015
Last Date to submit Online Application : 24.05.2015
Date of Online Fee Payment : 10.06.2015 to 24.06.2015
Date of Examination  should be : 02.08.2015
Important Links :

Detail Advertisement Link : http://www.idbi.com/pdf/careers/Detailed_Advertisment_MGES_2015_process_IBPS_May_27.pdf

Apply Online : http://ibps.sifyitest.com/idbiamjun15/