Vasanth Appaji

+ Follow
since Aug 22, 2000
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 Vasanth Appaji

The instructions will be very clear whether you should use ; and ". The same with spaces. So, don't worry about them. Only if an instruction has been given explicitly, do that. Don't go overboard.
Best of luck.
That's a great score. Congratulations.
Hi May,
Thanks folks.
Well, about scoring in the mocks, it's not the first time, second time. Read each line and word of RHE and write lots of codes to confirm what's written. I did that and I would have written hundreds and hundreds of small codes to test facts!!! You need to understand the compiler well after all.

There were two tests that I still find quite's pgjc and the other is Abilash's quiz. And it's not that you need to score 95% everytime. I was barely passing the mocks 2 months back. So cheer up and follow the rules of the game and you are sure to win. I would suggest Maha Anna's preparation tips on this same site. And try out every mock exam you can lay your hands on. I learnt a lot from mocks. And ofcourse a daily visit to the Saloon will really pay off.
b is the right one. -32768 to 32767 is for short.
I took my SCJP today and got the same question being discussed. I just assumed that String class has append() since the question clearly says what will String s be when printed. I took the plunge and it seems to have turned out right. So, my advise is that just assume as Jim says and forget about it. It's quite surprising how Sun has not noticed it!!!
Hi folks,
I cleared SCJP today after almost 4 months of preparation. I owe a big thanks to Marcus the great, Ajith, Maha, Jim Yingst Roseanne(for javachina ofcourse), Jyothi and to everybody else in this discussion who helped me learn something new almost everyday.

The exam was nothing like any of the mocks(I was scoring a consistent 95% in almost all mocks), but I'd still say Marcus's 3rd test is pretty close to the real one. I used RHE's Study guide and Brogden's Exam cram and feel both the books cover the objectives pretty well.
Looking at the future, I guess SCJD is the next target. Could anyone recommend something on this.
And a big thanx again to all you wonderful people and I'd keep visiting this site everyday, there's still so much to learn!!!
When you explicitly construct a constructor for any class, the default no-args constructor ceases to exist. There is absolutely no problem as long as yur constructor is not overloaded.
In your program, you have a super class and a sub class. You have an overloaded constructor in the superclass. SO the no-args constructor ceases to exist. When you create an instance of the sub-class, the constructor call is down the hierarchy, (ie) super to sub class.
The compiler always looks for the no-args constructor in the super class unless you have EXPLICITLY told the compiler which constructor of the super class it shud call.
Try calling the corresponding super class constructor in the sub class const. using super(args) and yu will have no problem at all. Else give a no-args constructor to the super class and the code will compile.
To put it short, when instantiating a sub class object, the constructors are called from super class downwards and unless you make a call to a particular cons. of the super class, by default the compiler runs to the no-args constructor of super class.
Hope that helped.
Yes, you can add abstract inner classes.
Anonymous classes are those that do not have any names and are directly instantiated when created. So, the name that comes after the new operator is the class that the anonymous class extends or the interface that it implements(only one at a time). So, you can add arguments to the anonymous class, provided that the the class you are extending has that constructor. Obviously, with anonymous classes implementing interfaces, you cannot do this.
Please correct me if I'm wrong.
What about the object that was referenced by c1 earlier before c1 was assigned c. Since the since object does not have any reference, it must be eligible for GC right???
Hi all,
I'm still not clear:
1. String s1=new String("hello");
2. String s2="hello";
Statement 2 doesn't hv a new operator which means there is no string object, but still a string literal WHICH IS AN OBJECT* created in the pool. Now, will GC collect this object from this pool when I that object/literal has no references???
*correct me if I'm wrong.
Hi Deekasha,
Can you please elaborate more on this. Now I'm really confused. I'm giving my JCP next week. And all this while, I thought string objects are like any other objects and are ELIGIBLE for GC when they don't have any references.
Thanks in advance