Mehul Sanghvi

Ranch Hand
+ Follow
since Feb 04, 2002
Merit badge: grant badges
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
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mehul Sanghvi

Hi,

What are the different mechanism to print a web page?
A few which I am able to think of are:
a) Using the browser menu to print
b) Using javascript
c) Using applets

Are there any other mechanisms to print a web page?

Thanks in advance.
Mehul Sanghvi.
17 years ago
Hi,

I have been trying to search for the option of reverse engg java code in RSM 6.0.1.1. I have tried the "help" and google but dont seem to have gotten the search string right!

Can anyone help me on this?

Thanks in advances.

Cheers.
Mehul.

Originally posted by Frank Carver:
It's surely just as reasonable to ask why would anyone serve a vegatable that's not meant to be eaten? I know I usually eat everyhting I'm served, and as I've never heard of serving food on a lilypad (edible or not) it's quite likely I would have tried eating it.



Just like in southern India in many other east Asian cultures leaves are used as plates. In southern India the food is served on a banana leaf. Before the arrival of disposable paper/thermocol/plastic plates we used to have plates made up of dried Banyan leaves stiched together with small sticks.
Cheap and eco-friendly both!

Regards.
18 years ago
String s =
(b=!b)?(b=!b)?"Hello":"hello": ( b=!b)?"world":"World";

The first (b=!b) is evaluated to true and hence the control comes to second (b=!b) which will now be evaluated to false and hence the value of "hello" will be assigned to String s.

A possible catch here is = vs. ==
The expn (b=!b) is actually an assignment operation rather then a conditional statement (which is generally expected in ternary operators).

Regards.
I guess this should explain:

www.visionwebhosting.net

Regards,
Mehul
While calling you are essentially copying the reference value stored in variable a1 created on main() stack to a1 created on function() stack.
Then the value of reference on function() stack is changed to point to a false, but the value of a1 on main() stack still remains the same to point to true.

Hence it prints true, true.


Regards
Mehul.
[ December 30, 2005: Message edited by: Mehul Sanghvi ]
18 years ago
Hi,


The above code gives a compile time error of type mismatch, cannot convert int to short.
If c is declared as int then the output is 1.
And if casting is removed the output is 32769.
Hence int the code

the value on right hand side is evaluated to 1, which is logical.

The question is: Why is that value not assigned to type short @ //1

Regards,
Mehul.
18 years ago
Hi,

I am sorry about the previous reply... it is wrong!

Well the reason it just print 'Hi' and not 'HiWelcome' is because, String is a non-mutable object hence when a+="Welcome" is executed, a new String object is created in memory with the value 'HiWelcome' and the address will be assigned to a, while the i will still point to the old String object with the value of 'Hi', and hence the output is 'Hi'.

Regards.
Coz variable i & a both point to the same String object in memory which will have value of "HiWelcome" after m1(i) and while printing i.

Regards.
Originally posted by me:

- Thread1 resumes to execute check() //result: false
- Thread2 resumes to execute setY(i) and then check() //result: true


Read that as:
- Thread1 resumes to execute check() //result: TRUE
- Thread2 resumes to execute setY(i) and then check() //result: FALSE
Harish,

Assuming 2 threads are competing to execute the code there can be a possible scenario wherein
- Thread1 stops after executing setY(i)
- Thread2 stops after executing setX(i)
- Thread1 resumes to execute check() //result: false
- Thread2 resumes to execute setY(i) and then check() //result: true

Cheers.
I guess the answer is B.
Hi,

I need xercesImpl.jar which is compliant with j2ee1.4.

I downloaded the j2ee1.4 which come along with sjas 8.1 and looked in the lib folder. I did find the xercesImpl.jar but the package hierarchy was com.sun.org.apache... whereas I am looking for one which has package structure of org.apache... (standardized, and not implementation specific).

Can anyone redirect me to the location from where I could download the standardized xercesImpl compatible with j2ee1.4 specs?

Thanks!

Regards,
Mehul.
What has helped me the maximum over the years is:
a) Almost complete knowledge of what I am going to speak about.
b) Timing the presentation with some buffer time for small talk with the audience.
c) Practicing in front of a full length mirror (helps to understand and change your body language)
d) See if you want to adjust the temprature or lights of the room before the presenation starts.. (Maybe switch off the A.C. blower pointing right where you are going to stand!)
e) Incase you dont know anyone from your audience, get yourself acquainted. (Works with audience of less than 20-25 people)
f) Outline the content at the begining and if possible at the end of the presentation.
g) Meet the eyes of the listeners as you speak, moving your gaze from one section of the audience to another.
h) Most importantly RELAX and enjoy your own presentation!

Hope this helps.
18 years ago
This thread has "Nationalistic Comparisions" and it has hurt my feelings!

18 years ago