Kalyan Naveenan

Greenhorn
+ Follow
since Jul 23, 2011
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 Kalyan Naveenan

thanks Keith Rainey and Mohamed Sanaulla for the explanation.
12 years ago
Now that i understood the concept abstract method can someone help me in understanding when and why is there a use for abstract method. Secondly i would like to know if there is a possibility of using an abstract static class in java so that even though instantiation is not allowed, is there a chance of accessing the methods and instance variables from another class ?
12 years ago

Arjun Srivastava wrote:

Parent class reference variable p would be pointing to an object of Child class in the Heap Memory.



Exactly whaat i waned. thanks a ton.

Arjun Srivastava wrote:

Kalyan Naveenan wrote:i have a Y class inherited from a X class. So how would Y my = new X(); instantiate?





Hope this helps you!



No, I would like to know on the actions based on heap memory. As in, for the instance new Y(), would it be treated as a child object to that of the X? Or fundamentally what would happen ?

Kalyan Naveenan wrote:The second would be on a basic one. What would happen if the object instantiated is to a new class. For eg say "Object1 a = new Object2();". In this case, to which obect would a point to ?

Object1 a = new Object2(); you can't do this unless Object1 and Object2 has relationship; more over Object1 must be a super type of Object2



Ok, in this case let me say, i have a Y class inherited from a X class. So how would Y my = new X(); instantiate?
Hello to all JavaRanchers,
Please help in understanding the correlation or difference between wrapper class and wrapper implementation with a simple example. Also how is autoboxing correlated to wrapper object(Page 289 from Head First Java)
12 years ago
Hello,
I need help in understanding the two concepts.
The first is on the difference between abstract and non-abstract classes and methods. Please do help in understanding the concept with a simple example.

The second would be on a basic one. What would happen if the object instantiated is to a new class. For eg say "Object1 a = new Object2();". In this case, to which obect would a point to ?
Hello everyone, can anyone here help me understand the difference between an abstract method and a static methods. As i understand in both these type of methods an object instantiation is not allowed. So why use two terms for the same function.
12 years ago

Iliyan Ivanov wrote:Can you please explain to me in short what tha Garbage Collector does and why is it useful ?
Thank you



Helps you clear the unwanted/unnecessary memory occupied. In short doesn't let you run out of memory.
12 years ago
i too have a doubt here. Is it a necessity that interface should hold the abstract or concrete method that needs to be implemented ?
12 years ago
Thanks Vijay Tidake for helping me understand the concept with a simple eg. So can you explain me why and when do i use the concept of interface implementation.
12 years ago
Hi, Being new to java, i would need some help from the experts here. Can someone explain me the concepts of abstract class & methods and how would each help in polymorphism. Please give an explanation with a simple example. Also if possible, it would be of much help if explanation is given with reference to eg in ch8 of head forst java
12 years ago