> hi friends actualy my friend went to interview there
> they asked this question...
>
> java is dependent...justifyy..
>
> anyone can pls justify this...
>
> thanku
>
> byee,
> keerthi.
I have a very hard time believing that the govenment will allow you to claim java and thus your computer as a dependent at tax time. OOHH that isn't what you meant then maybe you should specify. dependent how? dependent on what ?
There are likely 50 questions that could be made from that statement. If you err your friend was at an interview and that is how the company asked it and you didn't ask for clarification then I wouldn't be hiring you.
Well it depends if there is a virtual machine to run Java, so Java is dependent on a JVM.
hi i got it...thank u friends for u r reply..actually when my frnd asked me i didnt understand anything...then i searches in google but i didnt get that....that is why i have posted it...actually this was the question asked in TCS interview...when the interviewer asked this she didnt get any answer.....she told she desnt know..
thank u friends..
byee
keerthi
> Well it depends if there is a virtual machine to run
> Java, so Java is dependent on a JVM.
It's not just *if* there's a VM. The VM itself is platform-dependent.
Your wording is kind of vague, but I assume the question was something like, "Java claims to be platform-independent, but it is at least partially platform-dependent. Explain."
Java is platform-independent in that for many requirements, you can write and compile code where the same class files will work on any platform with a VM of the appropriate version--Windows, Linux, Mac... No need to write different code for different platforms, or even to recompile. This is because your Java code always runs on the same platform.
Java is platform-dependent in that the VM must be different for each platform. The VM provides the abstraction that lets your Java code think it's always running on the same platform, but of course a VM that runs on Windows will be different from one that runs on Linux. *SOMETHING* has to deal with the differences among the various platforms, and that's the VM's job.
> Well it depends if there is a virtual machine to run
> Java, so Java is dependent on a JVM.
>
> hi i got it...thank u friends for u r reply..actually
> when my frnd asked me i didnt understand
> anything...then i searches in google but i didnt get
> that....that is why i have posted it...actually this
> was the question asked in TCS interview...when the
> interviewer asked this she didnt get any
> answer.....she told she desnt know..
>
There are just so many things wrong with that....
> Perhaps some interview questions are posed to test
> knowledge, and others posed to test reactions to
> stress. My reaction would be to beat the interviewer
> senseless.
>
> I don't handle stress very well.
Perhaps it is a test to see how the interviewee reacts to a really stupid question?
> > Perhaps some interview questions are posed to test
> > knowledge, and others posed to test reactions to
> > stress. My reaction would be to beat the
> interviewer
> > senseless.
> >
> > I don't handle stress very well.
>
> Perhaps it is a test to see how the interviewee
> reacts to a really stupid question?
possibly, or a test to see how interviewers hold up when having to ask really stupid questions?