Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3975728
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:43:11+00:00 2026-05-20T04:43:11+00:00

im trying to port an iphone app to android. i am completely new to

  • 0

im trying to port an iphone app to android. i am completely new to java and android environment

i see different code samples on the internet, some use int and boolean where as some use Integer and Boolean

i wanted to know the pros and cons of both and which is the best way forward?

since primitive types are saved on the stack and no garbage collection happens on them, are they definitely a better choice as far as performance goes?

what is the real benefit of primitive v/s managed types? and what is the suggested approach?

in my app performance is crucial…

thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T04:43:12+00:00Added an answer on May 20, 2026 at 4:43 am

    The wrapper types are used when you need an object. For example : to be able to store integers in a collection (like a List or a Set), you need to transform the primitive into an object (Integer).

    The wrapper have another feature over the primitive types : they are nullable.So, for example, to represent an integer value stored in a nullable column of a database table, you’ll use Integer rather than int to be able to store the null value.

    Basicaly, my advice would be : use primitive types except whan you can’t (for example, for one of the reasons I just explained).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to port an iPhone App to Android, but am having some
I am trying to port some code form java do F# that generates a
I am trying to port some Android 2.x code to Android 1.5, here is
I am trying to port some of my WebDriver tests from JAVA to C#.
I am trying to port an iPhone app to iPad with as little work
I have a c++ app that I'm trying to port to iPhone and to
While trying to port some code to compile in linux I get peculiar compilation
I am trying to port an Android App to ios. It's been awhile since
I'm trying to port over some Core Data code over from a test Mac
I am trying to port working iPhone code to the Mac (iOS to OSX

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.