rohan yadav

Ranch Hand
+ Follow
since Oct 13, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by rohan yadav

Following code demonstrate c++ code
13 years ago
Hi all,
I am porting my code base from c++ to JAVA, I want to convert an integer to short, to insert it into byte array.
e.g.




can you please help me with this..??
13 years ago
Ohh .. Thanks Mathew and Andrey for your suggestions..
It seems that i have made a habit of thinking in c++ style
13 years ago
Then how should i achieve pass by reference in java(as we do it in c++, i am from c++ background)
13 years ago
Hi all,
I wants to swap primitive data types in java, as java uses pass by value for primitive data types , i used wrapper class and passed to the swap function still i am not able to swap the values can you please help...
Below is the code segment for the same....



13 years ago
I guess Left to right is general rule but i am not sure, I tried some generalized scenario's, i find left to right rule working properly,
But as i said i am not sure...
14 years ago
Expressions are evaluated from left to right in c++,
As ++i is true, right hand side of || will not get evaluated.
14 years ago
So do i required to import windows/linux library and then get processID??
14 years ago
Hey anyone please tell me is there any API for getting PID of calling process in java........???
14 years ago
Thanks Ed, but your post says something about JVM instance..... I just wanted to know is there any API/function call to get calling process PID in java...........??
14 years ago
Hi everybody,
I wanted to know How to get processId of calling process in Java??
I know processId is platform specific but i wonder if JAVA supports a library or function for getting processId independent of platform??
14 years ago
Does we have any certification for C++??
Like we have for java ,SCJP and all other stuffs..
14 years ago
That was also first initial thought, I m currently refactoring code, so i basicaaly dindint understand the code.. so I asked Here is code..



Or stick your arm in the nearest sphygmomanometer.

. And i dont need a such thing for such a small topic,but i bet you are carrying sphygmomanometer in your pocket that for sure
14 years ago
What exactly Monitor.Pulse() method do in Java...??
14 years ago
Also Look out for gcc compiler if you are interested in system programming..
14 years ago