Tip Bank

DevX - Software Development Resource

Reverse DNS

Question: If I can use the “InetAddress” class to acquire the IP address of a computer, is there a way to get the computer’s name from an IP address? Answer:

DevX - Software Development Resource

Java Profiler

Question: Is there a profiler like JProbe which supports the Microsoft Virtual Machine? I already tried the -prof switch on the command line, but that doesn’t do everything I need.

DevX - Software Development Resource

The const pass-by-value

Question: void foo(const int x) { // not altering x} Herb Sutter in Exceptional C++, pg.177 says, “const pass-by-value is unuseful and misleading at best.” I disagree, at a glance

DevX - Software Development Resource

Deprecated APIs

Question: How do I make a method deprecated? Answer: Deprecating a method or entire class is as simple as using the “@deprecated javadoc” tag in its documentation. For example: /**

DevX - Software Development Resource

JavaScript Not Working with IE 5.5

Question: Why will this code not work with IE 5.5? Answer: It’s not a question in this case of JavaScript not working with IE 5.5, but of Java not working

DevX - Software Development Resource

Informix 4GL Translators

Question: I want to purchase some software that will translate Informix 4GL to any of the following: Java, C, C++, or Perl. We have two applications that we need to

DevX - Software Development Resource

Significance of const Return

Question: What is the significance of const return type from a function?Similar to: const int func1(); Answer: The const in this position guarantees that the caller of the function doesn’t