Filter interviews by
int is a primitive data type, Int is a class in Kotlin, and Integer is a class in Java.
int is a primitive data type in Java and Kotlin
Int is a class in Kotlin that represents a nullable integer
Integer is a class in Java that wraps an int value and provides utility methods
Heap memory is dynamic memory allocation while stack memory is static memory allocation.
Heap memory is allocated at runtime while stack memory is allocated at compile time.
Heap memory is accessed through pointers while stack memory is accessed through variables.
Heap memory is used for dynamic data structures like linked lists while stack memory is used for function calls and local variables.
Heap memory is slower than s...
Kotlin is a statically typed programming language for modern multiplatform applications.
Kotlin is interoperable with Java and can be used for Android app development.
It is concise, expressive, and reduces boilerplate code.
Kotlin has null safety features that prevent null pointer exceptions.
It supports functional programming and has coroutines for asynchronous programming.
Kotlin is officially supported by Google for And
Diamond problem is a multiple inheritance issue where a class inherits from two classes with a common parent.
Occurs in languages that support multiple inheritance
Results in ambiguity in method calls
Can be resolved using virtual inheritance
Example: Class A -> Class B and Class C -> Class B, Class D inherits from both B and C
Java is not fully object-oriented because it supports primitive data types and has static methods.
Java has primitive data types like int, float, etc. which are not objects.
Java allows the use of static methods which do not belong to any object.
Java does not support multiple inheritance, which is a characteristic of fully object-oriented languages.
However, Java supports encapsulation, inheritance, and polymorphism, whic...
Top trending discussions
I applied via LinkedIn and was interviewed in Nov 2024. There was 1 interview round.
I applied via Recruitment Consulltant and was interviewed in Jun 2024. There were 2 interview rounds.
MVVM is a design pattern that separates the UI, business logic, and data layers in an Android app.
MVVM stands for Model-View-ViewModel.
Model represents the data and business logic.
View is the UI component that displays the data.
ViewModel acts as a mediator between the Model and View, handling user interactions and updating the UI.
Data binding is often used to connect the ViewModel with the View in MVVM.
Example: In an A...
A Content Provider is a component in Android that manages access to a structured set of data.
Content Providers are used to share data between different applications.
They provide a standard interface for connecting data in one process with code running in another process.
Content Providers can be used to store and retrieve data from a SQLite database, a file, or even the web.
Examples of Content Providers include Contacts
Coroutines are a way to perform asynchronous operations in Android, securing app data involves encryption, SSL pinning enhances security, FCM for notifications.
Coroutines are used for managing asynchronous operations in Android, allowing for efficient and non-blocking code execution.
Securing app data involves using encryption techniques such as AES to protect sensitive information from unauthorized access.
SSL pinning i...
Binary search is a search algorithm that finds the position of a target value within a sorted array.
Divide the array into two halves and compare the target value with the middle element.
If the target value is less than the middle element, search the left half. If greater, search the right half.
Repeat the process until the target value is found or the subarray is empty.
Concurrency technique in Android allows multiple tasks to run simultaneously, improving performance and responsiveness.
Concurrency in Android can be achieved using AsyncTask, Handlers, Executors, and RxJava.
AsyncTask allows running background tasks on a separate thread and updating UI on the main thread.
Handlers are used to post and process Runnable objects on a thread's message queue.
Executors provide a high-level API...
To check if a number is palindrome, reverse the number and compare it with the original number.
Convert the number to a string to easily reverse it
Reverse the string and compare it with the original string
If they are the same, the number is a palindrome
To find the smallest number in a list, iterate through the list and keep track of the smallest number found so far.
Iterate through the list and compare each number with the current smallest number.
If a number is smaller than the current smallest number, update the smallest number.
Return the smallest number found after iterating through the entire list.
I applied via Naukri.com and was interviewed in Nov 2023. There was 1 interview round.
Use counting sort algorithm to achieve O(n) time complexity.
Count the frequency of each string in the array.
Create a new array based on the frequency counts.
Iterate through the new array to reconstruct the sorted array.
Coding test based on array
Software Developer
3
salaries
| ₹3.2 L/yr - ₹5 L/yr |
Program Manager
3
salaries
| ₹13 L/yr - ₹18 L/yr |
Relationship Manager
3
salaries
| ₹9.4 L/yr - ₹12.4 L/yr |
Customer Service Executive
3
salaries
| ₹2.7 L/yr - ₹3.3 L/yr |
Customer Service Advisor
3
salaries
| ₹3.3 L/yr - ₹3.3 L/yr |
Reliance Industries
Tata Group
Aditya Birla Group
Hindustan Unilever