بروز خطا
[message]
اشتراک در سوال
رای ها
[dataList]
difference between a pointer and a refrence variable in java !
با عرض سلام وخسته نباشید خدمت رفقای توسعه دهنده...لطفا تفاوت های بین اشاره گرها و اشیا رو در جاوا توضیح بدید...متشکرم
#شیءگرایی #pointers
0
0
عنوان سوال جالب نیست ، من جای شما بودم میذاشتم "تفاوت های بین اشاره گرها و اشیا" ، دوم اینکه استاد این مطالب رو در فصل های مقدماتی به بهترین روش آموزش دادن شما فیلم ها رو مشاهده کنید متوجه میشید. (10 سال پیش)
0
0
A reference is sort of like a pointer that you can't do arithmetic on... although it's more opaque. While the underlying bits may be an address in virtual memory, they don't have to be. They're just a way of getting to an object (or representing the null value). So while they're not exactly the same, if you're used to thinking of a pointer as "a way of identifying an object or navigating to it" (in some sense) then yes, those thoughts apply to references too.
Java doesn't have pointers as such (unlike, say, C# which has references and pointers - the latter being used in "unsafe" code).
(: لینک (10 سال پیش)
برای این سوال پاسخی وجود ندارد.
پاسخگویی و مشاهده پاسخ های این سوال تنها برای اعضای ویژه سایت امکان پذیر است .
چنانچه تمایل دارید به همه بخش ها دسترسی داشته باشید میتوانید از این بخش لایسنس این آموزش را خریداری نمایید .