Win a copy of Terraform in Action this week in the Cloud forum!

Subhendu Dash

Greenhorn
+ Follow
since Mar 24, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 Subhendu Dash

Thank you all for answering my queries..appreciate it..!!
Well to sum it, Java and javaw are just tools(and not the JVM) that start the JRE which in turn invokes the JVM to execute our .class file.And which JDK is called depends upon the path that we have specified in environment variables(Windows) properties.

And i know we don't really need to know this..but where exactly is the implementation of the JVM?
9 years ago

Subhendu Dash wrote:2-If yes,then at run time which JVM is used ? the one present inside jdk/bin or the present at jdk/jre/bin ?


I don't know exactly. What exactly do you hope to learn with the answer to this question?


Just curious to know what executes my class's bytecode ..
9 years ago
Was going through Java SE Documentation..there it is mentioned that JVM is present with JRE which in turn is a part of JDK.Now when i see my JDK1.4/bin folder, i can see java and javaw tool present within it.Now both java and javaw are also present with jdk1.4/jre/bin folder.
So with this i have two questions:
1-Since java tool is used to run a particular .class file.So is it correct to say that java tool is the JVM that executes my .class file?
2-If yes,then at run time which JVM is used ? the one present inside jdk/bin or the present at jdk/jre/bin
?
9 years ago
Was going through a documentation on Inner classes.It was mentioned that one of the advantage of using Inner classes is that we can use them to access private member of the enclosing class.I agree that the ability of an inner class to access its enclosing class private member is an added advantage but in no way its seems to be the sole reason for using an Inner class.As always we have the option of using the public method for accessing that private field.
9 years ago

Ivan Jozsef Balazs wrote:

Subhendu Dash wrote:Is there any method present in Java API



Is the private stuff per definition not part of the API, the Application Programming Interface?



Yes it is..in fact it provides the best way to hide our implementation from the outside world and thus encapsulating our code..but here my question was about having a private method in an API.. which no one can call..so what's the use of it. And if the scenario is that some framework or JVM calls it internally then whats the point of mentioning it int the API..
9 years ago
when we don't want any one to call our method directly or even know about our method..then we would declare it as private..but why i am asking this question is ..somewhere i read that we have private readObject() method somewhere in Java API (sry..not sure abt its package name)..so was wondering why to have a private method in ana API?
9 years ago
Is there any method present in Java API ,having private access modifier associated with it.If yes,then what is the significance of having such a private method.
9 years ago
Was going through inheritance chapter in Kathy's java6 book..And came across a line that states that :"Its almost impossible to do anything in java without using inheritance "..And when i read "almost".i wonder is it even possible in java to do anything that doesn't uses the concept of inheritance?..since whatever we create in java extends from java.lang.Object
9 years ago
@Jelle Klap..But still Cat is a java class which also extends Object class..and in this case Animal class also..isn't it?
9 years ago
xactly..thanks man..!!
9 years ago
Java doesn't support Multiple Inheritance..a well known fact among java developers....but what about the fact that every class i create has java.lang.Object as its superclass..so if say i have a class Cat that extends Animal and by default Object..so isn't this multiple inheritance?
9 years ago
While creating a java class using Eclipse IDE ..i get an option of choosing my super class which is by default set to java.lang.Object, with a browse option beside it.So is it possible to have a java class whose super class is not java.lang.Object /
9 years ago
While writing to a .properties file using file output stream , i am getting an unexpected '\' escape sequence in it.How to avoid it??

Please Help
10 years ago
as a boolean variable can have only two values-true,false..so why exactly do we need an array of boolean values.???
10 years ago