Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

sandeep iyer

Greenhorn
+ Follow
since Dec 04, 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 sandeep iyer

You may have to remember a few things in io package and in util package. Others are all fine and not a big worry. single line answers like writing the name of the method with full signature may be expected
Bye
Dear Friends,
How can I know the computer resources
that are available at any instant of time?
It includes the amount of free RAM, CPU speed
HDD free space etc for making some decisions
based on these factors.
Thanks in advance.
Sandeep iyer
19 years ago
Dear Friends,
How can I know the computer resources
that are available at any instant of time?
It includes the amount of free RAM, CPU speed
HDD free space etc for making some decisions
based on these factors.
Thanks in advance.
Sandeep iyer
KAM stands for Khalid A Mughal. It costs Rs 450 in India
It will give u a very good hold over hte Java language and fundas. This book alone with other mock exams shold be sufficient.
All the best for the exams
Sandeep
19 years ago
Just knowing them is suffient
No thick quests on them
Dear Tom,
Studying the java.util package is important
Contsructors for all the IO streams and readers and writers are a must. some questions were based entirely on this. be through with io package, util and some graphics ideas with awt package
All are must
Time will be sufficient
All the best
Sandeep
Great help Asad
Thanks a lot
I will contact back soon
Thanks for the lead
Sandeep
19 years ago
Dear Asad Ali,
My program is given below. It compiles fine and all stubs and skeletons are generated. I saw in an earlier posting that u must change the security policy. I want to know some details about this. May be specifying "localhost" has a problem.
/* ---------- This is the interface -------------- */
import java.rmi.*;
public interface RMIServer extends Remote{
public String getName() throws RemoteException;
}
/* ------------------------------------------- */
/* ----------- This is interface implementation -------------*/
import java.rmi.*;
import java.rmi.server.*;
public class RMIimpl extends UnicastRemoteObject implements RMIServer{

public RMIimpl() throws RemoteException{
super();
}
public static void main(String []args){
System.setSecurityManager(new RMISecurityManager());
try{
RMIimpl rmi = new RMIimpl();
System.out.println("Server side : Done");
Naming.bind("rmi:///RMIServer", rmi);
System.out.println("Server side : Done");
}catch(Exception ex){ System.out.println(ex); }
}
public String getName() throws RemoteException{
return "My name";
}
}
/* ------------------------------------------ */
/*-------- Client ----------------*/
import java.rmi.*;
public class RMIClient{
private static String strName;
public static void main(String []args){
try{
RMIServer rmiClient = (RMIServer)Naming.lookup("rmi://localhost/RMIServer";);
strName = rmiClient.getName();
System.out.println(strName);
}catch(Exception ex){System.out.println(ex);}
}
}
/* ------------------------------------- */
Thanks
Sandeep
19 years ago
Dear Friends,
I have written a RMI program where the client
just queries the server and gets a string as reply.
The program compiles fine and all the settings are
proper. The rmic has generated the stubs and skeletons.
But when the server is run, it prints an AccessControl
Exception and then waits. I donot know why this is
happening. I am connected to the internet when I
run the program. Can any one help me in this regard ?
Thanks
Sandeep
Dear Friends,
I have written a RMI program where the client
just queries the server and gets a string as reply.
The program compiles fine and all the settings are
proper. The rmic has generated the stubs and skeletons.
But when the server is run, it prints an AccessControl
Exception and then waits. I donot know why this is
happening. I am connected to the internet when I
run the program. Can any one help me in this regard ?
Thanks
Sandeep
19 years ago
why do I get a AccessControlException when I runt he servre program ?
Thanks in advance
Sandeep
19 years ago
How can I place long text in a field in access
Thanks in advance
Sandeep
Dear Friends,
First of all I should thank you for all the help you have
rendered for my certification. I secured 88% this Monday morning and became one among you coveted programmers. Hope I am heading in the right direction. Looking forward for SCJD.
Dear Ajit, sorry for using the "Sandy L" user name twice even after a warning from you. This is my new ID. You can disable the other ID.
My Special thanks to Maha Anna, Ye Zhang, Marcus Green, Archana and Bill, Prasad, Kannan and others. You all helped me first gain the confidence that I could do it and then made me do it.
Again, as usual, I got screwed in threads. Ever heard of a synchronized block within another synchronized block and that too two such blocks in inner classes. I went wrong there. This is my division of marks :
Declaration & access control----> 100%
Flow control and exception handling ----> 100%
Garbage collection--------->100%
Lang Fundas ---------> 88%
Operators & assignments ----> 71%
Overloading , overriding -------> 71%
Threads ---------> 71%
awt ----------->100%
java.lang ---------->100%
java.util ----->100%
java.io ---->100%
These are some general aspects that I feel should help all those
people writing the exams :
1. DOnt panic. My first question was tricky and it was on castings and I got a bit tensed. But all the others were approachable and could attempt with ease.
2. Concentrate on the Fundas as String and array declarations. try all possible combinations and let me tell you, you will learn more by making mistakes in them than otherwise.
3. Try to learn things by having a hierarchial diagram than just trying to memorize the hierarchy and its methods. This helps particularly in deciding the constructors, methods available and exception handling in the subclasses.
4. Try to keep on revising the constructors on IO. I got two of them in Readers and InputStream. Revising now and then helps u to remember better.
5. Know all keywords and ranges of data types thoroughly. Also know the range in terms of both powers and numbers like for char.
6. Concentrate on inner classes especially from KAM. (Very Imp)
7. Concentrate on threads and synchronization. Very important is the wait() and notify() methods. Also object locking and data access
8. Questions as when the output is synchronized and not are Important. What is printed to the std out is must.
9. All Event classes and Interfaces of event package are must. You can just read the methods available and know which interfaces have adapter classes.
10. Anonymous inner classes and static inner classes need stress.
11. Dont worry about the long code since people writing now will not feel the difference since you would not have written the old exam. I did not feel that the codes were very long and can be treated as normal. For those who have read the KAM book , let me tell you, you will feel that it is very much normal.
12. Stress a lot on overloading and overriding principles. They will constitute a major part of the exam.
13. I faced nearly 30 code based questions and rest were theory. I feel general careful reading of code is a must. ( Watch out for overloaded and overridden methods in subclasses in the code. )
14. If you have some coding experience, it will really pay-off.
15. ALL THE BEST . YOU CAN DO IT .
IF I CAN , COME ON , YOU ALSO CAN .
THANKS . I WILL TRY MY BEST AND HELP OTHERS AND I KNOW I CAN LEARN A LOT
MORE TOO . I KNOW I HAVE JUST BEGUN.
Sandeep

19 years ago