Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

Muralidhar Mandapati

Greenhorn
+ Follow
since Nov 14, 2004
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 Muralidhar Mandapati

Congrats on a great achievement.

I have as well completed all the 3 exams but still awaiting for the results. Looks like the site is down for the last couple of days. Can you please let me know where we can find the status of the certification.

Thanks in advance.
Murali
As far as I can see the users can save the itenary that means he can only save the details of the travel which includes flight details, date of journey etc. Every time the user selects an saved itenary he got to check the availability of the tickets and then if the tickets available then the user can proceed further to purchase the tickets.

Any thoughts are highly appreciated.

Murali
Can someone explain me the difference between the state and strategy design pattern. Thanks in advance.

Murali
Does scalability means that the system can be changed in configuration ? without any effect to the existing system ..
How can we explain that the system is scalable ? Any examples..
Reliability is a measure of how consistently a system performs according to specification or requirements. The measure of reliability is not the same as performance. A reliable system is one that performs at the same level as the stresses on that system change. For example, if the simplest request takes 10ms to complete with one user, the system would be considered reliable if the same request takes 10ms with 1,000,000 concurrent users. The measure of reliability can take many different forms and can be as broad as supporting a certain number of registered users or as specific as requiring the round trip time for a single method invocation to be within a discrete range. The most reliable system is one where a request can be entirely handled in a single process.
Note that in this case if the method
static void m1(int b) {System.out.println("Integer");}
does not exists it would go to the next to it and it would call for Long.
if that as well does not exists it would go to the next to Float and then to Double.

If we wanted to call byte or short or char it must be type casted.

Cheers,
Murali
The question is pretty deceiving and this is how I suppose the actual exam questions are like...
Thanks Krishna making us aware to think of in these lines.

Cheers
Murali
Thanks Henry,
But i was wondering that does all the objects of the same class ( example different instances of the same classes ) return the same class object when we say
SomeObject.getClass();

Thanks and Regards
Murali
For the second question..
I think that inner class can extends any class other than final classes and can implement any interface.
Dear All,

I am newbie to this threading concepts. Can someone explain how does the class lock differs in the object Lock.
All i knew is the if the static method in a class is synchronised then it acquires the class lock while the instance methods which are synchronised acquires object locks.

I assume that the class files which we do get as the result of the compilation of the jave files are class objects are used for the creation of instance object. Does this class lock implies that Other thread which are trying to create instances of this class would not be permitted until lock is acquired.

Please do correct me.. I am not aware of this ..

Thanks in advance,
Murali
[ November 26, 2004: Message edited by: Muralidhar Mandapati ]
make sure that the zip file downloaded is in the classpath.
In the above example that you have provided it is considered to be a anonymous inner class and infact the code


can be viewed as a class that extends the Tester class and which implements run method.
Whenever a constructor is overloaded compiler does not provide default no argument constructor and hence make sure that we create an object using the constructors that are provided.

Cheers,
Murali
Apologies ...
The example provided does not provide the complete solution. Actually equals() method a method which would check the hashcode of the object and since all the class inherit either directly or indirectly so they do inherit this method.

Since String class has overridden this method such that equals() method checks for the content and hence it would work but if u have any other class we need to override this method according to our need : I am quoting the example provided in the Thinking in Java : ( An excellent book for concepts )

class Value {
int i;
}
public class EqualsMethod2 {
static Test monitor = new Test();
public static void main(String[] args) {
Value v1 = new Value();
Value v2 = new Value();
v1.i = v2.i = 100;
System.out.println(v1.equals(v2));
});
}
}

See the difference in results when we have String and any other class.

Cheers,
Murali