why java does not contain pointers?

Answer Posted / hariprasad

I agree to the above answers and also, the main reason is;
by using pointers we can violate the system security. This
is another reason why pointers are not available directly
from java.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you achieve polymorphism in java?

523


Why destructor is not used in java?

524


What is the collection interface?

589


Differentiate between a constructor and a method? Can we mark constructors final?

678


What is equals method in java?

525






What are multiple inheritances?

585


Is array a class?

523


What is meant by overloading?

590


What does n mean in java?

504


What is the java reflection api? Why it’s so important to have?

560


What is the meaning of flag day?

545


What is the reason behind using constructors and destructors?

558


Why volatile is used in java?

532


Can you sort a string in java?

495


For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green  White will have 1 Weight.  Red and Green carry no weights.  Shortest path is the path with less weight when you add up the weights in the path.

1585