R Arun

Ranch Hand
+ Follow
since Apr 20, 2002
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 R Arun

Is there any performance cost paid in deploying an application in production in exploded mode? Will the application perform better (response time) if it is in an archive (EAR)?
Does deployment as an archive perform better because:
1. there is no need to check the filesystem for changes (hot deployment)? 2. there are any caching opportunities when the app is packaged as an EAR?
Any other thoughts on the performance differences in these two modes of deploying an app in production are welcome and appreciated.
18 years ago
I'd like to see my println output in a command window (Win 2K). How do I get the messages to route here rather than go to a file?
19 years ago
I have 2 jar files each for xerces and xalan. The Manifest files dont have any version info. Is there some way of telling what versions these are?
19 years ago
Folks, I need to install and test with Websphere Application Server Version 4.0.5 AE.
My understanding is that in order to do this I need to install Fix Pack 5 on top of 4.0.1 base which will get me to version 4.0.5. Fix Pack 5 will not work on 4.0.
I am not able to find a download for 4.0.1 or higher. The only download I am able to find is 4.0.
Can someone point me to a URL or tell me how I can get to version 4.0.5?
Any advice will be appreciated.
[ April 14, 2003: Message edited by: R Arun ]
19 years ago
I'd like to thank all the wonderfully helpful people at the ranch. This is an excellent and indispensible site for certification prep.
A very special thanks to Maha Anna for her enormously useful certification site. Like so many others I thought I was ready for the exam, then stumbled upon her site and had to think again. The discussions on her site as well as those in this forum helped me greatly with my preparation.
Thanks to Jose, Corey and Reid amongst others for their useful answers to my questions.
I passed the exam today with 94% - I missed 3 questions. The exam was very easy. I was dissapointed when I found my score because I thought I had done better. I am more proud of the fact that I scored 75% on Valentin's mock.
In fact the exam was so easy that it concerns me -it reduces the prestige of holding a certification.
There are lots of questions on Threads and I/O. The qs on threads test if you understand concurrency, synchronization and the methods that support it - wait, notify etc. nothing tough. The questions on I/O test you on knowlege of the various classes and their constructors. Nothing more detailed.
There were two questions that did test knowledge of API methods in the File and Math classes.
The 3 questions on AWT were limited to layout and event handling - very basic stuff. Nothing on the various components.
The questions on util test understanding of the types of classes/interfaces rather than their details.
Finally a bothersome point: the quality of the exam was not as good as I would have expected from Sun. There were 2 ambigously worded questions and 1 question that absolutely, positively, certainly had no answer, and yet asked for 2 selections!
It was a very simple question testing understanding of == on distinctly newed objects vs. the use of the equals() method using the wrapper classes which we all know returns false when the class types are not the same.
This question appeared early and disturbed me since you obviously spend a lot of time pondering over it and get confused. I would like to try and take this up with Sun. I wonder if there is anything that can be done about it. Any suggestions anybody? Does anyone have any contacts at SunEd?
2 questions asked for an entry of the answer: enter the "value of the variable". The variable in question was a String in both instances. So it is confusing as to whether the answer should be "answer" or just answer without quotes. I am sure they can clean up such ambiguity in the test.
Though the prometric site tells you that the exam is 2hrs 15 minutes long, once you push start you only have 2 hours. The 15 minutes are apparently for other preparatory stuff. They dont tell you this.
The monitors are very very bad. Lots of flicker. I had a headache by the end of the exam. This despite picking one that had less flicker than the others.
Finally to those that are still preparing - mock, mock and mock some more. If you have taken all the free mocks available and understood the concepts being tested, you have covered all the kinds of questions that are asked. The questions are not tricky - they are not trying to get you with tricky unreachable code etc. I was overprepared, but it was a good opportunity to delve into the language.
Thanks to Paul Wheaton and all those that have created and maintain this site.
[ May 13, 2002: Message edited by: R Arun ]
[ May 13, 2002: Message edited by: R Arun ]
[ May 13, 2002: Message edited by: R Arun ]
Excellent. Thanks Marcelo.
Can a moderator please put this info into the FAQ for the benefit of all SCJP aspirants?
Thank you.
Do they let you decline the permission to use your personal information? I vaugely remember reading somewhere that you have to accept on ball questions. But what use is asking it if you cant?
Abilash's mock exam Q39 has me confused. After Q38 I thought I had a decent idea of what was going on. But why doesn't any button appear when you construct a frame with this code:


import java.awt.*;
public class TestFrame extends Frame
{
Button bNorth = new Button("North");
Button bSouth = new Button("South");
Button bEast = new Button("East");
Button bWest = new Button("West");
Button bCenter = new Button("Center");
public TestFrame()
{
setLayout(new BorderLayout());
add(bSouth,BorderLayout.SOUTH);
add(bWest,BorderLayout.WEST);
add(bEast,BorderLayout.EAST);
add(bNorth,BorderLayout.NORTH);
add(bCenter);
setLayout(new FlowLayout());
validate();
pack();
setVisible(true);
}
public static void main(String args[])
{
TestFrame tf = new TestFrame();
}
}


I thought it would display a single button - the last one added - in the center of the frame, occupying the entire frame. But it doesn't. I obviously dont understand how and when doLayout() is called and components are laid out.
It is tough finding information on AWT. Can someone please give me some info/pointers?
[ May 12, 2002: Message edited by: R Arun ]
[ May 12, 2002: Message edited by: R Arun ]
I have gathered that the first 2(?) questions on the exam have to do with accepting/declining some stuff that Sun needs. The clock is running when these questions are asked.
Can anyone provide feedback on what these questions are about and if it is a no-brainer to accept and continue quickly? It dosent seem like revelaing these questions will violate the agreement with Sun will it?
Sherrifs, please respond with your opinion on revealing this information. This will be useful information to put into the faq if possible.
Taking the exam tomorrow; any quick feedback will be appreciated.
True, but the fact that you are overriding a method as opposed to writing a new one implies that you are retaining the sematics of the superclass method. In this case the sematics are being redefined. This should have been a different method.
The purpose of placing an abstract method in a superclass and describing it in detail (while there is no implementation) is particularly to establish a contract. To say that a subclass can now do what it likes subverts this effort.
So the question is whether the change in behaviour is of a nature that changes the semantics of superclass. If it is, it should be a different method.
I am still of the belief that when an abstract method [edit/correction: the method is not abstract] specifically says that an exception will be thrown when the arguments taken together result in a particular state, then that is a core semantic of the method.
[ May 06, 2002: Message edited by: R Arun ]
The overriden read method in InputStream declares that if len is greater than the available number of bytes to read starting from off an IndexOutOfBoundsException will be thrown.
The overriding read mehtod in ByteArrayInputStream however destroys this contract and only reads the number of bytes that is possible to read and DOES NOT throw an IndexOutOfBoundsException.
Why? Bad bad. I am beginning to tire of the inconsistencies in the API. Can someone provide some encouragement please?
The constructor for FilterInputStream is protected. Understandable because this class is not meant to be instantiated by outsiders, and serves primarily as a base class.
Why is the constructor for FilterOutputStream public? Can somebody rationalize this?
Thanks.
From the JLS:


8.3.2.3 Restrictions on the use of Fields during Initialization
The declaration of a member needs to appear before it is used only if the member is an instance (respectively static) field of a class or interface C and all of the following conditions hold:
The usage occurs in an instance (respectively static) variable initializer of C or in an instance (respectively static) initializer of C.
The usage is not on the left hand side of an assignment.
C is the innermost class or interface enclosing the usage.
A compile-time error occurs if any of the three requirements above are not met.


However the following code does not compile using Sun's javac compiler (1.4.0):

In fact there is a specific example in the JLS that shows the above code to be legal - see the first line of the static intializer in the section referenced above where x = 10; is used before x is declared.
What's happening?