Win a copy of Java Challengers this week in the Java in General forum!

Sudha Kris

Ranch Hand
+ Follow
since Oct 31, 2000
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 Sudha Kris

Hi every one,

I am looking for job oppurtunities as J2EE developer in Toronto area.
Past five years I have been teaching Java & other programming subjects at various community colleges. Before that I have worked in IMR, (sofware development company) at Bangalore, India as programmer analyst.

I hold SCBCD & SCJP certifications. I want to change my career to the development side.

Please email me at sudha_kris@yahoo.com

Thanks

Sudha
16 years ago
Hi,
I am just wondering about taking up this exam. I saw the objective on Sun's site.Can any body help me in getting started.
1. Which books to start with - buy?
2. Web tutorials links for preparation
3. How is this certification valued in the industry?
I am a SCJP2, which I suppose is the only requirement for SCWCD.
Thanks
Sudha
Hi,
Peter thanks for clearing my doubt. I agree with you it may work fine in Windows but may be not in other platforms.
Sudha
19 years ago
Hi,
Rowan thanks, for the reply. Now it works. Peter, it doesn't matter if I close FileWriter first or PrintWriter first, 'cos I have closed the buffer before both. The data is in the buffer.
Thanks
Sudha
19 years ago
Hi,
Thanks for the reply. So now what's the solution to that, say instead of checking for EOF, I can change the condition to
say "type END to exit" but that doesn't work either.
Thanks
Sudha
19 years ago
Hi,
See the following code. This is to read a file from input(System.in) & write it to a text file.but it's not working. Can anyone tell me why?
Thanks
Sudha

/* This program uses the CheckFile class to check
a file typed in by the user as a command-line argument

*/
import java.io.*;
class ReadWrite
{
public static void main(String[] args)
{

String line="S";
try
{
// Create file
File file = new File(args[0]);
System.out.println("Enter anything to read");
System.out.println("Type ctrl-c to exit.");
//Create a FileWriter for the file
FileWriter fWriter = new FileWriter(file);
PrintWriter pWriter = new PrintWriter(fWriter);
InputStreamReader inStream = new InputStreamReader(System.in);
BufferedReader buf = new BufferedReader(inStream);
while((line= buf.readLine())!=null)
{

System.out.println(line);
pWriter.println(line);
}
buf.close();
fWriter.close();
pWriter.close();

}
catch(ArrayIndexOutOfBoundsException e)
{
System.out.println("Must enter a file name as a command-line argument");
}
catch(IOException ie)
{
System.out.println("Error in reading file");
}
}
}
19 years ago
I have just finished SCJp a few weeks back, want totry for Developer now. I want to ask you people till now I was using notepad for my java programs. I want to develop some good programs with GUI etc, so which IDE do you suggest? Ofcourse I prefer the one you can download for free.
I don't have a book for Developer preparation,I had Kahilid's book for SCJp which doesn't cover SCJD. Is it enough I cover the following topics for SCJD before downloading the assignement?
RMI
JDBC
Networking, working with Sockets etc.
Swing
Is that all or is there something more to it?
Thanks in advance,

Sudha
Hello Friends
About my preparations,
I had C, programming experience(which was quite rusted skills, as I took a break from work for 2-3 yrs for the family).I was never comfortable with the title of "home-maker" anyway, I knew I had to come back. Actually my husband was the one who inspired me to go back to work & for that he suggested this course. I was a little skeptical about all these, & whether I could do it after a long break.I had used Java (for animation ) & Javascripts while I was sitting at home for playing with making web pages.But as I started on my own I had no OO strong basics.
I started this process in mid Oct. with a SL-275 course conducted by Sun. Which is an ok course which covers the fundamentals.
After that I started reading books, RHE,(from a friend) Java Language specs by Gosling,(I got from library). Then I found out that Sun has changed the exam format & it's more on codes now. That's when I found out about this site & started looking for tips & posting my doubts.
Then 2 weeks back I bought Khalid's book,I had a tough time getting it, where I live, it's difficult to get these technical books. Thanks to Amazon.com, I got it by international courier, ofcourse I had to spend extra money on it. But it was worth it, I liked Khalid's book the best, & his sample exams.
Then ofcourse as somebody in the forum suggested - work with each objective for a day.I mean do coding on what they have asked in the objective, I found it easier than getting things clearer than reading a book.Then take the mock exams.After taking each exam make a note as maha suggested, to pin point where are you getting low scores etc. After that read the book,again, that's it.
I hope I didn't bore you people with my long story.
Thanks
Sudha
20 years ago
I have just cleared SCJP a few hours back. I got 81%, not too bad. I am happy to have cleared it, so off to the next level now.

Thanks everybody on this forum to have put up such a good site.
Tips for those who prepare for the test.
About the exam:
I didn't score much on Threads, the questions were very tricky in that. I/O was pretty straight forward, just concentrate on whtever they asked in the objectives. Others were not that tough, but they were tricky. There were questions on Gridbag layouts. Nothing on conversions, I mean numeric & ! etc. I was prepared for that also, conversion from hex/oct to binary.
Of course lots of codes, I think around 30+ questions. That's it, so good luck, give yourself atleast 1 month for preparing just in point of view of the exam.

1. Get a good book, I got Khalid's Programmer's Guide to Java certifiaction, if you could handle sample questions in it, you are ready to take the exam.
2. Read JLS, do lots of sample codes, try the limits of the language, I mean what's possible & what not.
3. Do lots of Mock Exams, I did JXam, MindQ, Marcus, +Khalid.
All these links I got from maha's site, thanks to her.
I find Khalid's exam is quite near to the real one, ofcourse real one is not all that tough as Khalid's.
That's it thanks a lot friends!
Sudha

20 years ago
Hello friends,
Thanks for the explanation, 1 st two explanation is same as what I also had in mind.But I beg to differ from the 3rd point of Mr Shah.
The compiler implicitly adds a constructor without paramters when you create an object with new Sub() because the derived class has a constructor without parameters. However you may not create an instance of Super with Super sup = new Super() because you have explicitly defined a contructor that takes an int as argument.

I don't think so, if I have not given super(4) an explicit call to the superclass constructor it will add a call super() to subclass constructor. But as I have it shouldn't add & if it adds also it will be a problem as I don't have a superclass constructor without a parameter.
So can anybody explain this.
Thanks
Sudha
Hello everybody,
I am sorry the code is not aligned properly. I have these questions regarding this code.
The output of the program is
i 10 num 5
num 5
num 6
I am methodA of Sub
When I do Super sup = new Sub();
1. Why does it associate variables(num) with the reference type ie Super.When I say sup.num it prints out the num in parent class.
2. It applies the same rule with methods also, it doesn't allow me to call any mehtods which exists only in child class.See the commented call to methodB()
3. If that's so, I mean you have to have methods existing in the parent class, why doesn't it apply the same rule to constructors? I am allowed to do Super sup = new Sub() eventhough I don't have a constructor with no arguments in the
parent.

I hope I am clear in my questions
Thanks
Sudha

[I added UBB CODE tags to your source code to make it more readable. Please try to use
them in the future. Learn more about UBB codes here - Ajith ]
[This message has been edited by Ajith Kallambella (edited November 22, 2000).]
So that's the only way out. From my part of the world to get Khalid's book is thru' only Amazon.com. Very expensive affair though 'cos of the shipping rates. Anyway I ordered it thru' them, in international priority mail.Waiting for it.
Thanks
Sudha
Yeah, I also want that, I mean some questions, I tried Khalid's Mock exam, but it doesn't have explanations.
Sudha
Thanks a lot Aparna & Oliver.
The memory part cleared my doubts about passing value & reference.
Thanks
Sudha