Gaurav Mantro

Ranch Hand
+ Follow
since Sep 08, 2000
Merit badge: grant badges
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Gaurav Mantro

Hi All,
I have installed a windows server 2003 x64 and was wondering what kind of support is available for 64 bit. I am looking for JVM, Apache/Tomcat, Eclipse alike IDE.
Any pointers/help will be appreciated.

18 years ago
As Corey has explained checked and unchecked exceptions are based on the fact what exception class do they extend. SO to figure out whether to catch an exception in program or not you have to traverse the hierarchy to see if its an RunTime Exception or is in subtree of exception class (not under checked exception subtree - user defined exception).
You will have to refer to documentation to find out about pre-defined exceptions and further the API documentation should indicate about the exceptions the API throws.
hope that was helpful
My understanding is that Java is slower as comparision to C/C++. Reasons are being an interpreted language, safety issues etc.
I had read benchmarks comparing Java - MFC - GNU C++ - VB, Java didn't do very well and was last in most of the benchmarks. But I read this benchmark 2-3 years ago, so things should have improved by now . I don't remember the website where I read this bench mark, but it was a non-microsoft website for sure. If I am able to find it, will post the link again.
But that doesn't make Java any less of a development option. There are many scenarios where I would love to have Java as the solution rather then C/C++.
22 years ago
Are there any commercial/freeware/shareware bb available that use Servlet/JSP ?
22 years ago
Hi Richard.
You can look at the following article to see code example of delegation model.
If this doesn't make things clear then please do repost and I will try to write a longer reply with code example.
22 years ago
Hi Raja,
I found the below mentioned article in DDJ'97 issue for multipage printing. I was not able to find the code listing on the website link, but maybe you can get hold of DDJ'97 and get the code listing.
22 years ago
You need to include "to be" imported file in your class path ?
Are you developing on windows platform or Unix?
If classpath is already defined in your session, you can add the following in your startup script or in windows in env variables (control panel - system)
Unix - setenv CLASSPATH $CLASSPATH /java/xxx /your_dir_path
Windows - set classpath=%classpath%;d:\your_dir_path
hope it helps ..
[ May 20, 2002: Message edited by: Gaurav Mantro ]
22 years ago
Hi Ulrich.
Please look at the following code.

When this code is executed the outcome is
StaticMethod of Test
NonStaticMethod of TestSub
Which indicates that StaticMethod was not over ridden that's why the StaticMethod of the typecast object type was invoked but since NonStaticMethod was overridden, although we typecast it to be of type Test it still invoked NonStaticMethod of TestSub, which is the original object and not the typecasted one.
Hope this helps.
Is it possible to check what object exist on heap and/or on literal pool ? Is there some kind of list maintained by java runtime which we can tap into to find the "code certified" answer, although can it be also a JVM implementation specific thing ?
If someone can point me to API's that we can use to get into Heap and/or Literal pool, I would be more then happy to write the code and share it here.
Once you are done with your exam can you please take some time to share your analysis of thread functionlality with us. Seems like you have done lot of work to understand threads and it would be very useful to benefit from your notes and observations.
Can anybody please point to earlier thread of discussion about the same topic? I am curious about two string object creation ?
Maulin, Vasavada,
Sorry for not providing all the information upfront like changing the Super or Client class is not an option as far as method declaration and overriding is concerned.
Although the code inside methods of Super as well as Client can be changed. As Madhav pointed out changing Super class is not always an option but I am saying that we can change Super so that we can find a way to code super class methods to get a greater flexibility (maybe we are on our way for another design pattern ...)
Isn't it fun to do challenging things? Although sometimes we can solve them because of other limitations but its a great learning.
[ January 09, 2002: Message edited by: Gaurav Mantro ]
Thanks for explaining it in detail. Although what I was trying to get into it is to find out a workaround for the given problem using some kind of type cast or other trick.
For example when we make a call to super.XXX() we are able to call the base class's method and not the overridden one.
I understand that currently the overridden method will get called because 'this' in Super class's testfunc is Client object and not the Super object. Just trying to figure out a way and also to see if this language feature can led to design pitfall if not taken care of at design time.
Just trying to explore Java for maximum flexibility.
[ January 09, 2002: Message edited by: Gaurav Mantro ]
Changing the access modifier's is not a possible option in this case.
The program is correct but I want to invoke testfunc(1) of Super and not Client in Super's testfunc method. How do I achieve the same.
What should be the call in Super's testfunc so that Super's testfunc(1) is invoked and not Client's testfunc(1)?