Raams Raj wrote:Hi to all,
what is array of pointers & pointers in array??
Hi Raams,
Welcome to JavaRanch. Looks like you are from a C/C++ background. Is nt it?

For sure you might get this question. Glad that you got it.
I guess other ranchers have given good answers. Does that help?
Simply speaking,
1. Java does NOT have a direct concept/terminology called Pointers. Indeed they are known as 'References'. Semantically the two words mean the same thing, pointing to an object/entity at run time.
2. Having agreed upon the aforesaid note, you can have an array of pointers [array of references] and pointers in array [references in array]. But they both drill down to the same thing finally.
Say for example:
where s1, s2 -> References to a String object.
strArray -> Reference to an object (which is nothing but an array here), holding some other references (s1,s2).
--
Array of References (Array of Pointers)
It can also be said that there are some
References in Array (Pointers in Array).
NOTE: In Java you don't have a terminology of acccessing/modifying the content or value of an object being pointed by the pointer through indirection operator (*) and increment/decrement stuff. Because, Java does NOT support pointers.
Does that help?
Please post back if you need further clarifications.