GeekInterview.com
Answered Questions

Why Java dosen\'t support pointers?

Asked By: kiran kumar reddy | Asked On: Feb 8th, 2006

Answered by: JohnJosephKiernan on: Jul 30th, 2006

Premm, see replies #20 and #21, and the JLS.If Java doesn't have pointers why are they mentioned in the JLS? and why does it have a NullPointerException?It doesn't have pointers with the semantics you describe: that's a different issue.IMHO what it doesn't have is *references* actually.

Answered by: premmm on: Jul 29th, 2006

Hi anupamaActually, java does not use pointers.s1 is an object.Let us consider the following situation.If you write username and password in your login page using pointer. go and see the view source o...

What is the use of abstract classes? How will we decide in a scenario, whether we have to use abstract class or interface?

Asked By: Rajiv | Asked On: Nov 29th, 2005

Answered by: ram on: Feb 17th, 2012

First of all abstract is a key word. Abstract classes are having both defined methods and undefined methods. Concrete classes having only defined methods in the case of concrete classes the execution ...

Answered by: raghu on: Nov 3rd, 2011

Can any one give a real time example program for abstract class and virtual functions plzzzzzzzz

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us: