Sital Kotamraju

Greenhorn
+ Follow
since Mar 21, 2006
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 Sital Kotamraju

Is there any special name to that interface(an interface with public constants)? I was asked this in an interview.

Thanks
18 years ago
<jsp:setProperty should be closed with a "/>" when there is no body.

<jsp:setProperty name="bean" property="*"/>
Thanks!!!

I have several years of Java/J2EE experience. Last year it got rusty however. I had scjp 1.2 cert also. But I think writing this was a totally different experience. Its much much harder and I really got a feeling of achievement yesterday.

I prepared full time for this exam(4 hours effectively per day). The first pass I read through the book writing only a few programs - which was a big mistake. But when I started to read the second time I got more indepth understanding and also I wrote hundreds of programs. Third time I concentrated on what other people here have said are more important - Generics, Enums, Autoboxing, Threads, API, Collections. So I ended up with near 100% in all these topics. But there were lot of tricky questions from the first part(of the book) as well which I did not concentrate as much.

My suggestion is, when you write programs to learn a topic the important thing is to write the programs all different ways possible - not just the correct way(which I used to do).

I did whizlabs mocks and the two exams from the book. I was barely passing the mocks because I was not reading the questions properly and then I read this post by Scott Johnson in SCWCD which made me understand what my mistake was, and then I started doing better :

During the exam, I had to force myself to slow down, read and re-read the question.

One of my biggest problems while taking the mock exams was not slowly reading the question text and code fragments. I would see what I expected to see and not what was actually on the page. This would cause me to miss something important and then I would get the wrong answer.



Good Luck
[ March 31, 2006: Message edited by: Sital Kotamraju ]
18 years ago
I would like to Thank Bert and Kathy for helping me Pass this test. This is THE book to read.

I read the scjp 1.5 k&b book couple of times and did several mocks. I took about a month to prepare for this exam.

Thanks everyone for all your posts.
18 years ago
I think I am clear on this now. Please correct me if I am wrong.

import java.util.*;

class Fruit{}

class Apple extends Fruit{}

class Gala extends Apple{}

class RottenApple extends Gala{}

class Macintosh extends Apple{
public static void main(String[] args){
List<Fruit> apples = new ArrayList<Fruit>();
basket(apples);

List<Object> objects = new ArrayList<Fruit>();
basket(objects); // We can pass in any supertype of Apple
}

static void basket(List<? super Apple> list){
list.add(new Apple()); // we can only add Apple or its subtype
list.add(new Gala());
//list.add(new Fruit()); // we cannot add its supertype
}
}
import java.util.*;

class Apple{}
class Macintosh extends Apple{
public static void main(String[] args){
List<Apple> apples = new ArrayList<Apple>();
basket(a);
}
//insert code here
}


Which inserted at //insert code here will compile?



why can't the following be inserted?
static void basket(List<? super Apple> list){list.add(new Object());}
In scjp 1.5 should we worry about missing ; or braces?
I noticed this in 1.5 bonus exam
Congrats DaveA!!

Thanks for the tips