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
How do you achieve polymorphism in java?
Why destructor is not used in java?
What is the collection interface?
Differentiate between a constructor and a method? Can we mark constructors final?
What is equals method in java?
What are multiple inheritances?
Is array a class?
What is meant by overloading?
What does n mean in java?
What is the java reflection api? Why it’s so important to have?
What is the meaning of flag day?
What is the reason behind using constructors and destructors?
Why volatile is used in java?
Can you sort a string in java?
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.