DEV Community

Cing Sian Dal
Cing Sian Dal

Posted on

Autoboxing နဲ့ Unboxing ဆိုတာ

Autoboxing ဆိုတာ primitive types များဖြစ်ကြတဲ့ boolean, byte, char, float, long, int, short, double တွေကို Wrapper class များဖြစ်ကြတဲ့ Boolean, Byte, Char, Float, Long, Integer, Short, Double အဖြစ်ပြောင်းလဲပေးခြင်း ဖြစ်တယ်။

အရှင်းဆုံးပြောရရင် primirtive types တွေကို object အဖြစ် သုံးလို့ရအောင် Wrapper Class တီထွင်လိုက်တာဖြစ်တယ်။ သူမှာလည်း သက်ဆိုင်ရာ methods တွေ အပို ပါဝင်လာပါတယ်။
image

Unboxing ဆိုတာက Object ဖြစ်နေတဲ့ တန်းဖိုးတွေကို primitive types အဖြစ် ပြန်ပြောင်းတဲ့ ဖြစ်စဥ်ကို ဆိုလိုတာ။

မေးခွန်း Object နဲ့ Primitive Types တွေက Memory ပေါ်မှာ ဘယ်လို အလုပ်လုပ်လဲ? Space ဘယ်လောက်ယူလဲ?

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay