Help coderanch get a
new server
by contributing to the fundraiser

Arulkumar Gopalan

Ranch Hand
+ Follow
since Oct 13, 2003
Merit badge: grant badges
For More
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 Arulkumar Gopalan

First appropriate declaration; then comes initialization.
Why i's value is printed as 10 instead of 11 at line4?
But, i's value is printed as 11 if different variable is used?

Why final keyword is accepted with private?

Private methods are not accessible outside of it's class, including to it's own subclasses. So, Overridding of a private method is not possible. Then, why Java accepts private & final kewords together in method declaration?

Note: Asking this question, because certain combination are not accepted by the java compiler like, e.g abstract & static keywords. (but don't discuss about abstract & static here, since the concepts are different in both.)
Apparently, am spending more time to know my score than the time spent for exam preparation. I have given up, and just waiting for certification kit to know the score!

But, of course, authentication is required for security & to identify candidates.

May be, SUN could provide a SSN (Sun Security Number) to identify candidates in all applications/system they have!
18 years ago
This is what I see in "Download Logos" section:

Sun Certified Associate for Java Platform, Standard Edition

There are no logos available for this program.

So, Isn't it available for SCJA?
If so, I don't understand why?
Is this the same case with other beta exams?


[ September 02, 2005: Message edited by: Arulkumar Gopalan ]
[ September 02, 2005: Message edited by: Arulkumar Gopalan ]
18 years ago
Yes, I could also logon to the database just now and able to see the results. My first SUN certification, of course FREE $$$!

Thanks to every one!
18 years ago
Here is an example of how variables are hidden/dominated in methods.
Reference for the rows of the array is already created and compiler is aware of the same. You are printing the second row which does not have any value. So, null is getting printed.

But, incase if the array declaration is complete as below, you would not get null.
int i[][] = new int[2][2];

The above code(originally posted) has same effect as the code below, since no other code is present in bMethod()

so, bMethod() is not concurrently executed.

Actually, threads are executed concurrently. But 'synchronized' puts a lock in the synchronized method(or synchronized block) and does not allow other threads to access that piece of code until the current thread releases the lock.

Does it answer your question?
Having said abstract key word is used only for "to avoid creating instance of a class". But, below explanation says, that should be achieved using private constructor, not through abstract.

A class type should be declared abstract only if the intent is that subclasses can be created to complete the implementation. If the intent is simply to prevent instantiation of a class, the proper way to express this is to declare a constructor (�8.8.10) of no arguments, make it private, never invoke it, and declare no other constructors. A class of this form usually contains class methods and variables. The class Math is an example of a class that cannot be instantiated; its declaration looks like this:

This is just FYI!
boolean equals(Object o) method also uses the hashing mechanism to compare object references.

The code provided explains which you said somethings are not possible.
- code has two different type of arrays (Integer and int)
- Integer array accepts the int value
- int array accepts the Integer value

Please read your explanation throughly and check the code provided below. For your understanding, I have given the println methods also. Execute the code and let me know if you have any questions.