aspose file tools*
The moose likes Java in General and the fly likes java interview question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "java interview question" Watch "java interview question" New topic
Author

java interview question

Aruna Doddaka
Greenhorn

Joined: Apr 24, 2004
Posts: 1
what are the various ways of declaring final variables
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
As this doesn't appear to be an SCJP exam related question, I'm going to move this to Java in General (Intermediate).
Corey


SCJP Tipline, etc.
KR Campbell
Ranch Hand

Joined: Mar 26, 2004
Posts: 124
Hmm.. job interview question? I'm probably stepping outside my weight here but at first glance it seems like one of those make the candidate think questions. If it was me, I'd try to show them that I was thinking the answer through step by step because I'm not sure exactly what they want.
1. Describe what a final variable is.
2. how it applies to a primitive.
3. how it applies to an object.
4. class or instance.
5. access modifiers.
6. implicit in an interface ( or is that abstract classes ? ). :roll:
Maybe someone smarter has a better answer.
Regards,
Kenny
Chengwei Lee
Ranch Hand

Joined: Apr 02, 2004
Posts: 884
I'd not start by telling the interviewer every single thing that I know of final variables. I'd take a few seconds to think about the question and seek clarification on what exactly does he wants, is it a simple

or is he looking for other things.
Not thought I don't know more about final variables, I'm merely showing to the interviewer that as an employee, I'd not hesitate to clarify my doubts & this translates to the fact that I'd make sure that I know as clear as possible what is expected of me prior to executing a task. Likewise, I'd make sure I understand clearly my client's requirements before putting it down into the specs.
Just my views.


SCJP 1.4 * SCWCD 1.4 * SCBCD 1.3 * SCJA 1.0 * TOGAF 8
Udegbunam Morah
Ranch Hand

Joined: Oct 13, 2002
Posts: 36
Hi Cheng Wei Lee ,
I totally agree with you. That approach will definitely win a knowledgeable employer.


Udegbunam Ikechukwu Morah<br />B.Sc.,SCJP, MCP, OCP, PMP<br />Manager, Business COnsulting Group<br />Deep Business Solutions Limited
Chengwei Lee
Ranch Hand

Joined: Apr 02, 2004
Posts: 884
Thank you
Originally posted by Udegbunam Morah:
Hi Cheng Wei Lee ,
I totally agree with you. That approach will definitely win a knowledgeable employer.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: java interview question