Rahul Ramachandran

Ranch Hand
+ Follow
since Feb 27, 2001
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 Rahul Ramachandran

Hello Java People,
I got my Programmer Certification last year, and am presently interested in A+ certification.
Can anyone suggest me a good book, and a good discussion board (as good as javaranch)?
Thanks a lot
Rahul
I cleared the SCJP2 about 5 months ago, and am now interested in taking up the Developer Certification.
I am also returning to javaranch after a considerably long time.
Can anyone direct me in finding resources?
Thanks
Rahul
Hi everyone,
I have recently completed my Masters in Industrial Engineering from the Wichita State University, Wichita, KS. I have a bachelors in Mechanical Engineering. I am also a Sun certified Java Programmer. I am proficient in PL/SQL and database design.
I do not have any prior coding experience, but do have a couple of years experience in a manufacturing environement as well as some experience in a mechanical sofware firm in India.
I have been trying out for jobs in all major websites for the past month and a half but have not got a single response.
I have even moved to Dallas, TX in hope that my chances might be better with the local companies here. No luck.
Can anyone give me any suggestions?
Thanks
Rahul
22 years ago
Rahul Ramachandran
7780 McCallum Boulevard
Apartment # 26317
Dallas, TX-75252
(972) 713-9313
rahul_nie@hotmail.com
June 12, 2001
To
Ms. Carrie Robinson
Dear Ms. Robinson,
I am a Sun Certified Java Programmer for the Java 2 Platform. I am very conversant with various languages, have extensive computer skills and have worked on the latest software packages and technologies. I also have almost 2 years� experience in a large manufacturing firm as Production Engineer, and also as a Support Engineer in a high-tech firm. My work experience also encompasses another 2 years� of designing and conducting experiments for a project jointly funded by the Cessna Aircraft Corporation, Raytheon Aircraft Corporation and Brittain Machine Tools, Wichita at the Wichita State University. I have recently completed my Master�s in Industrial & Manufacturing Engineering from the Wichita State University, Wichita, Kansas with a GPA of 3.50/4.0.
I am very confident that with my combination of professional work experience, computer skills and solid educational background I can take on any challenging task that your job demands.
I am presently in Dallas, TX and am willing to relocate to any place in the US. I shall look forward to hearing from you by email or by phone.
Thanking You
Yours truly,
Rahul Ramachandran
22 years ago
Hey Tintin(most obviously not your real name!)
Go for JQ+. It is definitely the best. Do not bother about the guarantee. The software costs only $20, compared to Prometric's $150.
Yours truly,
Captain Haddock
Hey there!
You have to get 61% to pass (36 correctly answered questions out of a total possible of 59).
Good luck!
Rahul
Whew! I finally DID it!
Got 46 right. I could have done better, especially in threads (57% (4 out of 7)), but who cares?!?!
I must sincerely thank all the active ranchers in this forum. Special thanks to Paul Anil (of JQ+), Jane Griscti and other ranch hands who unhesitatingly gave quick solutions to all my problems.
Thanks again.
Yours truly,
Rahul
Hi Ranchers,
I have a doubt regarding garbage colletion and the finalize() method.
It is known that the finalize() method is invoked on an object when it is garbage collected, and that the finalize() method is run only once on an object.
If the finalize() method is overriden and the object is instead resurrected, then the next time the object needs to be garbage collected, the finalize() method WILL NOT be invoked on it. Correct? That means, it will be GONE (I am not using the term garbage collected), when it next is left simply dangling without a reference.
Well, my real doubt now follows: In JQ+, I found a few questions like: "The finalize() method is ALWAYS called before an object is garbage collected, true or false". Answer is invariably TRUE.
My answer is FALSE.
What say you ranchers?
Thanks a lot.
Rahul
Which of the following will add a Component 'comp' to a container 'c', if it's layout is governed by GridLayout 'g'?
1) c.add(comp);
2) c.add("Center", comp);
3) g.add(comp);
4) g.addLayoutComponent("Component Name", comp);
5) c.add(comp,-1);
The correct answers are given as 1,4 and 5.
I felt 2) should also be among the correct answers.
(I am quoting the Java API documentation)(look at (e))
a)Component add(Component comp)
Adds the specified component to the end of this container.
b)Component add(Component comp, int index)
Adds the specified component to this container at the given position.
c)void add(Component comp, Object constraints)
Adds the specified component to the end of this container.
d)void add(Component comp, Object constraints, int index)
Adds the specified component to this container with the specified constraints at the specified index.
e)Component add(String name, Component comp)
Adds the specified component to this container.
Q. What (if any) are the events that can only be handled using low-level event processing and cannot be handled by using the event listener model?
A. Paint Event.
Question No. 14.19 from Mughal Khalid.
Same question.
A. None
My answer too is None.
Anyone?
Thanks
Rahul
Hi Zkr,
Please refer to this JLS explanation: http://java.sun.com/docs/books/jls/second_edition/html/names.doc.html#36191
I have copied it here:
6.6.7 Example: protected Fields, Methods, and Constructors
Consider this example, where the points package declares:
package points;
public class Point {
protected int x, y;
void warp(threePoint.Point3d a) {
if (a.z > 0)// compile-time error: cannot access a.z
a.delta(this);
}
}
and the threePoint package declares:
package threePoint;
import points.Point;
public class Point3d extends Point {
protected int z;
public void delta(Point p) {
p.x += this.x;// compile-time error: cannot access p.x
p.y += this.y;// compile-time error: cannot access p.y
}
public void delta3d(Point3d q) {
q.x += this.x;
q.y += this.y;
q.z += this.z;
}
}
which defines a class Point3d. A compile-time error occurs in the method delta here: it cannot access the protected members x and y of its parameter p, because while Point3d (the class in which the references to fields x and y occur) is a subclass of Point (the class in which x and y are declared), it is not involved in the implementation of a Point (the type of the parameter p). The method delta3d can access the protected members of its parameter q, because the class Point3d is a subclass of Point and is involved in the implementation of a Point3d.
The method delta could try to cast (�5.5, �15.16) its parameter to be a Point3d, but this cast would fail, causing an exception, if the class of p at run time were not Point3d.
A compile-time error also occurs in the method warp: it cannot access the protected member z of its parameter a, because while the class Point (the class in which the reference to field z occurs) is involved in the implementation of a Point3d (the type of the parameter a), it is not a subclass of Point3d (the class in which z is declared).
Cheers!
Rahul
Hey man! Congratulations!
Rahul
Hello everyone!
Please have a look at the code below:
<code>
class testc
{
public static void main(String[] args)
{
System.out.println("String".toString()=="String");//1.true
System.out.println(" String ".trim()=="String");//2.false
System.out.println("String".trim()=="String".trim());//3.true
System.out.println("STRING".toUpperCase()=="STRING");//4.true
System.out.println("STRING".toUpperCase()=="STRING".toUpperCase());//5.true
System.out.println("String".substring(0)=="String");//6.true
System.out.println("String".substring(0,6)=="String");//7.true
System.out.println("String".replace('t','t')=="String");//8.true
System.out.println("String".replace('g','G')=="String");//9.false
</code>
My question is:
Why is 2 false?
The java API documentation clearly says: "Removes white space from both ends of this string." There is NO specification whether it is a NEW string. Hence answer should be TRUE.
Why are 6 and 7 true?
Again, quoting the API specifications: "substring(int beginIndex)
Returns a new string that is a substring of this string.
i.e. Answer should definitely be FALSE.
Same goes for the other overloaded constructor of substring(int beingIndex, int endIndex).
Thanks a lot
Rahul