Kotlin Interview Questions and Answers for Freshers and Experienced (2022)

Kotlin Interview Questions for Freshers

1. What are the various data types available in Kotlin? Explain them.

Primitive data types are the most basic data types in Kotlin, and all others are reference types like array and string. Kotlin contains all data types as objects. Different data types that are available in Kotlin:-

News App using Kotlin, MVVM, Navigation Component, Room, Retrofit, and Coroutines

Dependencies (build.gradle of App)

plugins {

id ‘com.android.application’

id ‘kotlin-android’

id ‘kotlin-android-extensions’

id ‘kotlin-kapt’

id “androidx.navigation.safeargs.kotlin”

}

// Architectural Components
implementation “androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0”
// Room
implementation “androidx.room:room-runtime:2.2.5”
kapt “androidx.room:room-compiler:2.2.5”
// Kotlin Extensions and Coroutines support for Room
implementation “androidx.room:room-ktx:2.2.5”
// Coroutines
implementation ‘org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.5’
implementation ‘org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.5’
// Coroutine Lifecycle Scopes
implementation “androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0”
implementation “androidx.lifecycle:lifecycle-runtime-ktx:2.2.0”
// Retrofit…

Navigation Drawer with Fragments in Android using Kotlin | Navigation drawer with fragments

In this blog, we are going to see how to create a beautiful navigation drawer with fragments in android using kotlin.

- Here we are going to use a beautiful navigation drawer dependency ‘com.shreyaspatil:MaterialNavigationView:1.2’

- Using this dependency we can create a material navigation drawer view.

Implementation

main_menu

<?xml version=”1.0" encoding=”utf-8"?>
<menu xmlns:android=”http://schemas.android.com/apk/res/android"…

Android Fitness App using SQLite Database

In this blog, we’re going to see how to create a Fitness app using SQLite Database. In this blog, you can learn many basic points of android app development, like, how to use SQLite database, how to create onboarding screens, how to handle fragments, how to handle menu items in…

Golap Gunjan Barman

Hi everyone, myself Golap an Android app developer with UI/UX designer.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store