sam mathew

Greenhorn
+ Follow
since Dec 15, 2000
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 sam mathew

Hi,
I recently completed SCJP and I am keenly interested in developing web applications with jsp-servlet technologies.
I would like to know of any web site where we can find sample projects(like shopping cart application etc) with which we can try some seriouscode.
most of the books talk about concepts and stand alone programs but not about a real life type application.If someone can point out the website it would be of great benefit...
Thanking in advance..
23 years ago
I found the following definition in Sun API site...
exit:
public static void exit(int status)
*)Terminates the currently running Java Virtual Machine. The argument serves as a status code; by convention, a nonzero status code indicates abnormal termination.
*)This method calls the exit method in class Runtime. This method never returns normally.
*)The call System.exit(n) is effectively equivalent to the call:
Runtime.getRuntime().exit(n)

I am not clear as to the effect on the program when we call system.exit
can someone clarify...

hi,
steps..
1) go to sun site and try to do as much as possible on the java tutorial..
2)get certification book by roberts and read line by line the relevant chapters(must,must)..
3)start with mock exams and complete all the exams from www.javaranch.com/maha page
4)try to do the exams till you get 85% consistently(particularly marcus green mock exam)
5)go for the final test..
hope this helps
23 years ago
Hi,
Thanks a lot...
got one more funda(ie.fundamental) cleared...
sam
Hi,
I again tried with the following code(changed the codition slightly...) and this time i got the result of the condition as false...
JLS specifies that except for string objects for all other objects equals is similar to ==...
request someone to clarify...

public class Test1 {
public static void main(String args[]) {
Boolean b = new Boolean(true);
Boolean b1 = new Boolean(true);
if ( b==b1 ) {
System.out.println("These wrappers are equal");
}
}
}
when i run the following piece of code,
i get "These wrappers are equal" as output..
I was under the impression that equals method when invoked on objects shall check the reference only.. in this case since both b and b1 were created with new seperately, how come the result came as true..
can someone clarify...

public class Test1 {
public static void main(String args[]) {
Boolean b = new Boolean(true);
Boolean b1 = new Boolean(true);
if ( b.equals(b1) ) {
System.out.println("These wrappers are equal");
}
}
}
Hi,
I request people who took the exam to clarify some points...
1) are all the questions code based...
2) are there questions which involve simple statements from which we need to pick up correct statements...
3) regarding the piece of code for the questions, are they really very lenghty(meaning 20-25 lines of code) or are they around 10-12 lines of code..
Kindly throw some light on this..
Thamks in advance...
23 years ago
I saw the following question in a mock exam site...
public class Test1 {
public static void main( String [] args ) {
StringBuffer sb1 = new StringBuffer("Amit");
StringBuffer sb2= new StringBuffer("Amit");
String ss1 = "Amit";
System.out.println(sb1==sb2);
System.out.println(sb1.equals(sb2));
System.out.println(sb1.equals(ss1));
System.out.println("Poddar".substring(3));
}
}
The result when I run this is false,false,false,dar..
But,what I expected was false,true,false,dar..
can someone clarify...
I would like to know whether true, false and null are keywords.
As per http://java.sun.com/docs/books/jls/html/3.doc.html#229308,
(which is a sunsite), these three words are not listed as keywords..
David Harrigan had mentioned about using editors for coding..
I 100% agree with him.. These editors help to highlight things very clearly..
I am using Jcreator tool from Xenox software(and i find it is good) and in fact it is free!!!I am not associated with the company in any way but thought of posting this for people who are interested in freeware(I think textpad is shareware)...
I came to know about this forum only a few days ago and it is very helpful for my preps..
I am preparing for the exam with the following books...
Java-Complete reference,Jaworski and RHE...
I am covering lots of material everyday, but I do not know how to test myself(in other words, i am looking for mock exams)..
Ok,Ok there are lot of posting about mock exams in this forum, but what i would like to know is that the order in which we can take these exams...
(Easier ones to begin with and progressively more difficult)
can anyone send me some details on this aspect...
23 years ago
I came to know about this forum only a few days ago and it is very helpful for my preps..
I am preparing for the exam with the following books...
Java-Complete reference,Jaworski and RHE...
I am covering lots of material everyday, but I do not know how to test myself(in other words, i am looking for mock exams)..
Ok,Ok there are lot of posting about mock exams in this forum, but what i would like to know is that the order in which we can take these exams...
(Easier ones to begin with and progressively more difficult)
can anyone send me some details on this aspect...