Monday, 4 November 2013

Excise Constable Results 2013


Excise Constable Results 2013
Excise Constable Results has declared a very soon on has conducted a written examination on excise constable.

Here we can get results from fallowing link.In this link we can enter your Hall ticket number and your date of birth details.Then we can get the results .

Click here fallowing link

Constable Examination Results
Read More

Tuesday, 29 October 2013

RRC South Eastern Railway Recruitment



RRC South Eastern Railway Recruitment
Railway Recruitment Cell ,Kolkata has advertised a notification 3136 posts for Trackman,Helper & Other various posts.Eligible candidates can apply through the online before 25-11-2013.More details about of the application and qualification,age limit,selection and  processing details are given bellow...


Details of RRC Vacancies :

Total number of vacancies:3136

Name of the Posts:
1.Pointsman-B  104 Posts
2.Trackman : 1343 Posts
3.Helper-II 1498 Posts
4.Safaiwala 96 Posts

Education Qualification: Candidate should be completed 10th or equivalent.

Age Limit: Candidate age should be greater than 18 and bellow 33 years.

Selection process:Candidates will be selected based on their performance and written examination fallowed by Physical Efficiency Test.

Application Fee: Candidates have to pay the application fees Rs.100/

How to Apply:Eligible candidates can send the application in prescribed format.

Last Date for sending  the Application: 25-11-2013

Last Date for Submission of Application for Far Flung Areas:10-12-2013

Fore more Details click the fallowing link

Click here for Recruitment Advt&Application Form
Read More

Monday, 28 October 2013

Importance of the hashCode() method in java:


 Importance of the hashCode() method in java:
More frequently used in hashCode() method in design patterns.In interview point of view mostly asked question is hashCode() method and its importance.Now we will see the hashCode() method and its working.

hashCode() method:
--->If we want to use a class object as a key in a hashing collection of java then that class must be override hashCode() method and equals() method.
--->hashCode() method belongs to java.lang.Object class
--->if we don't override a hashCode() method in a class then Object class hashCode() method will be called.It will returns the memory address of an object in the form of an integer.
--->wrapper classes and string classes of java are already overriden a hashCode() method and equals() method. So we can use these class object as key in collections.
Some important points to remember with respect to hashCode() method
i)If two references are referring same object then always their hash Code's are equal.---->true
example:
    String s1="Aa";
    String s2=s1;
     s1==s2 ------>true
     s1.hashCode()=2112
     s2 .hashCode()=2112
So if two references are refer same object then their hash Codes are equal.
we can find the hashCode of a  string by using the fallowing formula.
     String=number format 1st character*31 pow(n-1)+number format of 2nd character *31 pow(n-2)
     Aa=65*31 pow(2-1)+97*31 pow(2-2)
          =65*31+97*1  
          =2015+97
          =2112

ii)If two hash Codes are equal then they are referring one Object                              ----->false.
example: 
     String s1="Aa"
     String s2="Aa"
   s1==s2     ---false
    s1.hashCode()=2112
    s2.hashCode()=2112
above example hasCodes are equal but they are referring two different objects.

iii)If two objects are meaningfully equal then they are hash Code's are equal(by force)----->true
    
-->when we are creating  user defined class the it is our responsibility  to override hashCode() method and equals() method.

example:
     class Demo
      {
           private int x;
            public Demo(int x)
             {
                this.x=x;
               }
            @Override
               public boolean equals(Object o)
                {
                 if(o instanceof Demo&&(((Demo).x)==this.x))
                 {
                    return true;
                      }
                  else
                   {
                       return false;
                       }
                   }
            @Override
                   public int hashCode()
                    {
                      return x+50;
                     }
                }
               class Main
                {
                  public static void main(String args[])
                   {
                      Demo d1=new Demo(20);
                      Demo d2=new Demo(20);
                          if(d1==d2)
                           {
                             System.out.println("d1 and d2 are identically equal");
                            }
                            if(d1.equals(d2))
                            {
                           System.out.println("d1 and d2 are meaningfully equal");
                            }
                        System.out.println("d1.hashCode()");
                         System.out.println("d2.hashCode()");
                      }
                   }
output:
    d1 and d2 are meaningfully equal
    70
    70

Difference between the hashCode()  method and equals() method?
ans:
---> both methods are overriden ,when an object of a class wants to be used as a key in a collection.
--->To store the data in a hash bucket hashCode() method will be called.But to read the data from a hash bucket first  hashCode() method will be called and the equals()method is called.

             
Read More

Sunday, 27 October 2013

In interview point of view important questions in java:



In interview point of view important questions in java:
In java mostly asked questions are based on the some methods in java.Some important methods are like toString()method,equals()method and hashCode()methods and their differences.Now we are going to see these methods and their importance.

1.toString() method:
ans:
-->generally toString() method is overriden in a class,to read an object's in a text format.
--->when we pass a java class object as parameter to the System.out.println statement internally toString() method of the object will be called.
--->if class doesn't override a toString() method then toString() method of the java.lang.Object class will be called.
--->toString() method of java.lang.Object class will return like the fallowing
       Class name@unsigned hexadecimal format of the object's hashCode.
for example:
     public class Demo
     {
        private  int x;
        public Demo(int x)
         {
           this.x=x;
          }

        public static void main(String args[])
         {
             Demo  d=new Demo(10);
              System.out.println(d):
           }
      }
-->in this above example we can not override the toString() method.So Object class toString() method will be called.we are getting the output as like the fallowing
output:
Demo@3e25a25
-->But we are override the toString()method in our program we can get the correct result.
example:
public class Demo
{
   private int x;
   public void Demo()
    {
      this.x=x;
     }
      public String toString()
      {
        return x="+x;
       }
   public static void main(String args[])
    {
       Demo d=new Demo(10);
     System.out.println(d);
    }
}
output: x=10

2.equals() method:
ans:
---->In java to compare two Objects like the fallowing.
     i) == operator for identical comparison
     ii)equals() method for meaningfully comparison.
--->The operator == returns true then two objects references are referring same object.Other wise it referring two different objects.
--->The operator equals() method returns true ,if the values are meaningfully equal other wise they are not equal.
--->if equals() method is not overriden in a class then the java.lang. Object class equals() method will be called.
-->equals()method  of object class internally calls == operator for comparing two objects.So there is no difference between the ==operator and equals() method of Object class.
example:
Note:For the wrapper classes Boolean,Integer,Short,Byte,Character.if the values of the objects are same then jvm creates only one Object.
example:
Integer i1=120;
Integer i2=120;
 i1==i2 ------>true
i1.equals(i2) ----->true

Integer i1=250;
Integer i2=250;
i1==i2 ---->false
i1.equals(i2) --->true

--->if the wrapper class range is exceeded then  two objects are created other wise it one object is created.
example:
class Main
{
  public static void main(String args[])
   {
     Integer i1=120;
     Integer i2=120;
    if(i1==i2)
   {
     System.out.println("i1 and i2 are identically equal");
    }
    if(i1.equals(i2))
    {
      System.out.println("i1 and i2 are meaningfully equal");
     }
     Integer i3=250;
     Integer i4=250;
     if(i3==i4)
     {
       System.out.println("i3 and i4are identically equal");
       }
      if(i3.equals(i4))
      {
         System.out.println("i3 and i4 are meaning fully equal");
      }
  }
}
out put: 
  i1 and i2 are identically equal
  i1 and i2 are meaning fully equal
 i1 and i2 are meaning fully equal
   

Read More

Saturday, 26 October 2013

NKGSB Cooperative Bank Recruitment 2013


NKGSB Cooperative Bank Recruitment 2013

NKGSB Co-Operative Bank rescue the notification for clerical jobs.Candidate age should be grater than 18 and less than 28 years.Who are apply these jobs they are  must complete graduation or post graduation to the recognized  university.Eligible candidates can apply these posts before 31-10-2013.who want to get more details about the job notification and application details through the online www.nkgsb-bank.com.Fore more details like important dates,selection process are given bellow...

Organization Name: NKGSB Co-Operative Bank

Official Website: www.nkgsb-bank.com

Total Number of Vacancies:who want get the number of vacancies through the online website.

Job Type: Govt Clerical jobs

Qualification: Graduation/Post Graduation

Application Fees:Candidate must pay Rs.500 chelan form of nkgsb co-operative bank

Age Limit: Candidate age should be greater than 18 and bellow 28 years.

Selection Process:Candidates should be selected based on the written test and personal interview.

Last Date for  Registration Application form: 31-10-2013

Fore more Details click the fallowing link
NKGSB Co-Operative Bank Job Notification
Read More

Friday, 25 October 2013

Walk in interview for Freshers 2013 as Project Trainee Engineer


Walk in interview for Freshers 2013 as Project Trainee Engineer

Xchanging company has released a notification for Project Trainee Engineer.2013 pass out candidates can apply these vacancies.Eligible candidates can apply these posts.Eligible criteria and other details like job role,qualification and all the details are given bellow...

Company name: Xchanging

Company Website: www.xchanging.com

Job Role: Project Trainee Engineer

Educational Qualification: BE/B.Tech,MCA

Experience: Fresher 2013

Package: As per Industry Standard

Walk in Date: 27-10-2013

Time: 10.00 am to 12.00 pm

Interview venue:
Xchanging Solutions Limited,
Coconut Grove,#33,18th Main, 1st A Cross,6th Block,
Koramangala, Bangalore 560095

More Details click fallowing link
Source: Click Here
Read More

Wednesday, 23 October 2013

Vacancies for Steel Authority of India Limited Bhilai:


Steel Authority of India Limited Bhilai:  In Steel Authority of India limited has invited a vacancies for Electronic OCT in Bhilai. Eligible candidates can apply these posts before 04-11-2013.All the details of the notification are given bellow..

Address: Post Box-16, Sector-01 Post-Office

Postal code: 490001

City: Bhilai

StateChhattisgarh

Salary: Rs. 10,700/-p.m during 1st year and Rs.12,200/-p.m during 2nd year will be paid.

Educational Recruitment: Matriculation with 3 years full time Diploma in Engineering in Electronics from any recognized by state.

Number Of Posts: 65

How to Apply: Eligible candidates can apply through the online www.sail.co.in. Choose "Career with SAIL" and then check under BSP/Bhilai Steel plant and do the fallowing process.

1)valid e-mail id which should remain valid for at least one year.

2)pay in slip for Rs.250 as application and processing..

3)candidate should have latest passport size photograph and as well as photograph of signature.

Age limit: 18-28 years.

Last date: 04-11-2013

Details will be available   here

http://sail.shine.com/media/documents/home/OCT_330_posts-English_Final-290913_upload.pdf
Read More