since Sep 14, 2005

For More

Cows and Likes

Cows

Total received

0

In last 30 days

0

Total given

0

Likes

Total received

0

Received in last 30 days

0

Total given

0

Given in last 30 days

0

Forums and Threads

Scavenger Hunt

Ranch Hand Scavenger Hunt

Greenhorn Scavenger Hunt

Thanks for the reply and help Fred and Henry...

Just one more thing from u fred..you said...

"so, we get 00101001 from the inversion, then

00101010

from adding 1"

How do you arrive at binary 00101010 after adding 1 to binary 00101001 as you said above. 00101001 already has 1 as the right most bit, so how come adding 1 to this value makes it 00101010 ? Is there a shift of bit or something ?

Thanks again both of you

Syed Rizvi

Just one more thing from u fred..you said...

"so, we get 00101001 from the inversion, then

00101010

from adding 1"

How do you arrive at binary 00101010 after adding 1 to binary 00101001 as you said above. 00101001 already has 1 as the right most bit, so how come adding 1 to this value makes it 00101010 ? Is there a shift of bit or something ?

Thanks again both of you

Syed Rizvi

18 years ago

Hi,

There was a compile time problem with the following line..

Float f= new Float[10];

The object reference new Float[10] suggests that this is an array of size 10 and type java.lang.Float, but this reference saved in a simple reference variable Float f . The correction here would be add the array symbol to the reference variable f as follows :-

Float[] f= new Float[10];

Hope this helps..

Rizvi

There was a compile time problem with the following line..

Float f= new Float[10];

The object reference new Float[10] suggests that this is an array of size 10 and type java.lang.Float, but this reference saved in a simple reference variable Float f . The correction here would be add the array symbol to the reference variable f as follows :-

Float[] f= new Float[10];

Hope this helps..

Rizvi

18 years ago

Thanks for the reply abhijit..but i guess u did not get my point. Please see my original post..that is the very first question i asked which henry answered...i'll just repeat again for clarity...

Suppose i have a decimal number char v = 41

Binary value of v = 101001

Form 1's complement of v or ~v = 010110 (inverted the bits)

Now my problem here is...how do i come to know the decimal value of ~v. The book that i'm referring to (Khalid Mughal) suggests that the decimal value of ~v is -42. So my question is...How do i deduce from a binary value of ~v (which is 010110) that its corresponding decimal value is indeed -42.

Hope i was clear enough to explain the problem....

Thanks again,

Rizvi

Suppose i have a decimal number char v = 41

Binary value of v = 101001

Form 1's complement of v or ~v = 010110 (inverted the bits)

Now my problem here is...how do i come to know the decimal value of ~v. The book that i'm referring to (Khalid Mughal) suggests that the decimal value of ~v is -42. So my question is...How do i deduce from a binary value of ~v (which is 010110) that its corresponding decimal value is indeed -42.

Hope i was clear enough to explain the problem....

Thanks again,

Rizvi

18 years ago

Thanks for the reply henry..but thats what exactly what i wanted to know..how do u convert the negative binary to negative decimal. As your reply suggest, adding 1 to the invert of 41 gives :-

= 1111 1111 1111 1111 1111 1111 1101 0111 (add 1)

Now how do i deduce from this that this indeed is the binary of -41 ?

Thanks Again.

Rizvi

= 1111 1111 1111 1111 1111 1111 1101 0111 (add 1)

Now how do i deduce from this that this indeed is the binary of -41 ?

Thanks Again.

Rizvi

18 years ago

Hi,

Can anybody help me with the calculation of decimal from binary value of a negative number. I'll explain the problem i'm facing with an example :-

Suppose i have a decimal number char v = 41

Binary value of v = 101001

Form 1's complement of v or ~v = 010110 (inverted the bits)

This example is from Khalid Mughal (pg - 77 2nd Edition). According to the book, the decimal value of bitwise complement above ~v is -42. I'm not able to understand how this decimal value is calulated from the binary representation. If i go ahead and simply calculate the decimal from binary as:-

=0*2power(0)+1*2power(1)+1*2power(2)+0*2power(3)+1*2power(4)+0*2power(5)

= 0+2+4+0+16+0

=22

This value is not -42 where as the book says it should be -42. Can anybody help me with a way of calulating negative decimal values from such binaries.

Thanks and Best Regards,

Syed Rizvi

Deloitte Consulting.

Can anybody help me with the calculation of decimal from binary value of a negative number. I'll explain the problem i'm facing with an example :-

Suppose i have a decimal number char v = 41

Binary value of v = 101001

Form 1's complement of v or ~v = 010110 (inverted the bits)

This example is from Khalid Mughal (pg - 77 2nd Edition). According to the book, the decimal value of bitwise complement above ~v is -42. I'm not able to understand how this decimal value is calulated from the binary representation. If i go ahead and simply calculate the decimal from binary as:-

=0*2power(0)+1*2power(1)+1*2power(2)+0*2power(3)+1*2power(4)+0*2power(5)

= 0+2+4+0+16+0

=22

This value is not -42 where as the book says it should be -42. Can anybody help me with a way of calulating negative decimal values from such binaries.

Thanks and Best Regards,

Syed Rizvi

Deloitte Consulting.

18 years ago

Hi,

Can anybody help me with the calculation of decimal from binary value of a negative number. I'll explain the problem i'm facing with an example :-

Suppose i have a decimal number char v = 41

Binary value of v = 101001

Form 1's complement of v or = 010110 (inverted the bits)

Can anybody help me with the calculation of decimal from binary value of a negative number. I'll explain the problem i'm facing with an example :-

Suppose i have a decimal number char v = 41

Binary value of v = 101001

Form 1's complement of v or = 010110 (inverted the bits)

18 years ago

hi Ulf,

The webservice i've to call takes a lot of parameters. Depending upon the availability of the webservice, i've to decide whether to call the webservice or put my processing into batch mode. This is the business logic decision i've to take and for this i need to know whether the webservice is up or not. Please let me know if you are aware of any such method whereby i can check the web service availability ?

Thanks for the help / reply.

The webservice i've to call takes a lot of parameters. Depending upon the availability of the webservice, i've to decide whether to call the webservice or put my processing into batch mode. This is the business logic decision i've to take and for this i need to know whether the webservice is up or not. Please let me know if you are aware of any such method whereby i can check the web service availability ?

Thanks for the help / reply.

18 years ago

Can anybody suggest me a way of checking a particular web service availability? I'm using AXIS and i need to decide about a particular or alternative course of action in my business logic depending upon the availability of the web service i'm using.

Thanks,

Syed Rizvi,

Senior Consultant,

Deloitte Consulting,

Mumbai - India

Thanks,

Syed Rizvi,

Senior Consultant,

Deloitte Consulting,

Mumbai - India

18 years ago

Hi,

I'm planning to give my SCEA exam in Oct,05. Can anybody help me out with these two questions :-

1) Where can can i find / download the online version of the SCEA study guide by Mark Cade ?

2)Can anybody provide me the link / information on the latest version of this SCEA study guide ? I heard that this book is comming out in Oct,05.

Thanks & Regards,

Syed Rizvi

Senior Analyst,

Deloitte Consulting - India

I'm planning to give my SCEA exam in Oct,05. Can anybody help me out with these two questions :-

1) Where can can i find / download the online version of the SCEA study guide by Mark Cade ?

2)Can anybody provide me the link / information on the latest version of this SCEA study guide ? I heard that this book is comming out in Oct,05.

Thanks & Regards,

Syed Rizvi

Senior Analyst,

Deloitte Consulting - India

18 years ago