5 Android Interview Questions - Threads, Leaks, Intent, Service

Sdílet
Vložit
  • čas přidán 1. 08. 2024
  • In this video I'll answer 5 common Android interview questions for the intermediate Android developer position.
    #Android #AndroidInterview #AndroidDevelopment #CodingInterview
    0:00 What is a Pending Intent
    1:26 Service Thread
    2:20 Memory Leaks
    3:50 Static
    4:54 Cross-app Interaction
    5:13 Bonus Question
    Follow me on Twitter: / odaymaleh
  • Věda a technologie

Komentáře • 36

  • @646766100
    @646766100 Před 3 lety +28

    2 thread in asynctask one is background thread and other is ui thread to set the data on ui or view.

    • @ped7g
      @ped7g Před 2 lety +1

      depends on Android version and the way how you configure it. There was attempt from Google to launch AsyncTasks at several backround threads around some Android... 4.0, or 2.something... and it turned out most of the apps were not written in a way to expect several async tasks getting executed out of order, so they dialled it back to serial execution of asynctask on the default executor pool, but you can ask for the other one, which allows you to run several background threads in parallel.
      (writing this from head, and haven't used this API for over year, so it's possible I mixed up some details, or even maybe I'm thinking about some other subsystem, not AsyncTask, but I'm like 80% sure it was actual AsyncTask stuff, not Thread).

  • @guanlunzeng9332
    @guanlunzeng9332 Před 2 lety +12

    I like your intonation 😂

  • @braxtonhancock5508
    @braxtonhancock5508 Před 2 lety +2

    big thanks for making this video 🙏

  • @techmarinar
    @techmarinar Před 2 lety +1

    Thanx man this was very helpful 😊

  • @rohitjakhar6672
    @rohitjakhar6672 Před 3 lety

    Great Sir

  • @jorgegutierrez2100
    @jorgegutierrez2100 Před 2 lety

    You should have way more subscribers. I just found your channel and the content is delicious 😋

  • @nokaffirisinnocent
    @nokaffirisinnocent Před 2 lety

    awesome bud wish i knew before

  • @eduvgama
    @eduvgama Před 3 lety +2

    Yes. I would say 2 too.

  • @mohamedalaa6yahoo
    @mohamedalaa6yahoo Před rokem

    Many thanks to you ♥♥♥

  • @fb767
    @fb767 Před 3 lety +2

    I love your humour haha at 3:15.

  • @walktxrn
    @walktxrn Před 2 lety +7

    Correct me if I'm wrong. But don't you mean static inner classes with weak reference so they CAN be GCd when no longer used?

  • @carolhuang5529
    @carolhuang5529 Před rokem

    Could you please recommend some projects for resume? thx

  • @thebatu
    @thebatu Před 3 lety +5

    min 3:26 Are you sure that the correct phrase is not "so they CAN be GC-ed" ? since weak reference can be GC at anytime, no memory leak will occure?

  • @ChrisAthanas
    @ChrisAthanas Před 3 lety +5

    Great content

    • @odayprogrammer
      @odayprogrammer  Před 3 lety +1

      thanks Chris, what else would you like to see on this channel?

    • @ChrisAthanas
      @ChrisAthanas Před 3 lety

      Deeper dive on coroutine exception handling and Room database relationship annotations with good examples and graphics

    • @786madiha
      @786madiha Před rokem +1

      @@odayprogrammer End to end examples of using Unit/funtional tests.

  • @kwesiamartey
    @kwesiamartey Před 2 lety

    Can you imagine, I met these questions not long ago. Exactly the same questions

  • @denniskwakye6177
    @denniskwakye6177 Před 2 lety

    Got asked a bunch of questions that were answered here. If only i watched this earlier 💀

  • @AlfredGuimaz
    @AlfredGuimaz Před 3 lety +1

    Made me crack up at the start

  • @aniketshetty4800
    @aniketshetty4800 Před 3 lety +4

    1 background thread 1 callback to main thread

  • @strictway2907
    @strictway2907 Před 3 lety +4

    But AsyncTask is already deprecated, are they going to continue asking about it?

    • @beyondlimits384
      @beyondlimits384 Před 2 lety

      if we use async task in ur project they will bash us..on.. why u not using retrofit or volley and in last they will ask question on async....there is no limits of hypocrisy

    • @MegaRockandroll09
      @MegaRockandroll09 Před 2 lety

      ​@@beyondlimits384 Its to test your basic knowledge. There is no hypocrisy here. If you have implemented Async they why did you choose async , why not new Handler or Thread or WorkManager.

  • @michealandretis7243
    @michealandretis7243 Před 3 lety +3

    Know all of them, still not hired. But I guess If you're not a master in android development, testing, use every single reactive tech, dependency injection etc etc etc you don't even qualify for junior roles.

    • @odayprogrammer
      @odayprogrammer  Před 3 lety +3

      Funny you mention that just now, I got rejected for a senior Android dev position at a Dutch company just 2 hours ago, because of a personality test :) really don't be discouraged, many companies aren't worth your time and it's good to know upfront, better than wasting your time with them

    • @michealandretis7243
      @michealandretis7243 Před 3 lety +2

      ​@@odayprogrammer You know what's funny? your skill indicator before the technical interview for 'junior and mid roles' is measured by questions like 'What is an activity' and 'How do you start another Activity' or 'What is a toast' all in simple Java ... you jump in the interview and get asked about what are the differences in testing methods , how experienced you're in using dependencies and of course mastering MVVM. And if you say you're mostly using java they look at you as if you're an alien as if you can't achieve the exact same results with java.... Note that these roles are supposed to target graduates, and i'm like.... There is no such thing as mvc,mvvm in any school. How the hell are you supposed to work like that if you've never joined a big company or worked Freelance(like me)/Self taught?
      Funny is that after an interview, the hr confided to me that i answered everything correctly for 1.5 year of experience vs mid level seniority.

    • @pinkies26k
      @pinkies26k Před 2 lety

      @@michealandretis7243 I truly gets u. I got rejected few time by big companies that expect me to be able to memorise the terms and definition. I'm self taught in android development. I don't know many of the terms but I know how to get these things done. But these people from big companies always have this attitude like "oh you don't know this? Try reading about it next time"
      Lately the interviews feel a lot like exam. I did try to revise on the android knowledge but different interviewers ask different questions and if I try to answer it from my point of view, they look at me like I'm some kind of idiot. It's really depressing.

  • @smirnovsergey2010
    @smirnovsergey2010 Před 3 lety +2

    two threads

  • @ikeo8666
    @ikeo8666 Před 3 lety +1

    3:26 so true. as an interviewer just tell me you don't know so we can move on rather than trying to buillshit and looking stupid. Nobody expect you to know everything, just fess up and next.

  • @punithapriya1110
    @punithapriya1110 Před 2 lety

    2

  • @czerox16
    @czerox16 Před 2 lety +1

    there are some many mistakes in this video