why we r not use pointers in corejava?
Answers were Sorted based on User's Feedback
Answer / arun
First you need to understand the concept of Pointer.
Pointer in C++, gives as reference to object from outside.
if we provide same thing in java, the concept of
Encapsulation will be violate. so java doesn't provide this
feature till 6.0 version. Recently Java added this feature
in java7.0. but they gave different name Clouser, which
give you pointer to function, as Callback in C...
| Is This Answer Correct ? | 15 Yes | 5 No |
Answer / javac
Internally java is based on pointers only.Sun People have
implemented the java utilites using pointer concepts but
they have restricted the developers to use the pointers.so
we cannot use pointers in java.
| Is This Answer Correct ? | 5 Yes | 4 No |
What is data and its types?
How do you generate random numbers in java?
What is the difference between ArrayList and Vector? which one is better in Java
0 Answers SkillGun Technologies,
What is string and example?
what is java
How can you sort dates?
What is an arraylist in java?
System.out.println("somestring"); It will create any object or not
there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.
Why are strings immutable in Java?
When is the finally clause of a try-catch-finally statement executed?
What is difference overloading and overriding?