Fusioni Technologies
JSW One Platforms Interview Questions and Answers
Q1. What is difference in Val and var?
Val is immutable and var is mutable in Kotlin programming language.
Val is used to declare a variable whose value cannot be changed once assigned.
Var is used to declare a variable whose value can be changed.
Val is similar to final variable in Java.
Var is similar to non-final variable in Java.
Val is preferred over var as it ensures immutability and reduces the chances of bugs.
Example: val name = "John" // value cannot be changed later, var age = 25 // value can be changed later
Q2. Design patternwhich followed
I follow the MVC (Model-View-Controller) design pattern in my iOS development.
Separates data (Model), user interface (View), and control logic (Controller)
Improves code organization and maintainability
Promotes reusability and scalability
Examples: UIKit framework in iOS uses MVC pattern
Q3. Have you worked on MVVM?
Yes, I have worked on MVVM architecture pattern.
MVVM stands for Model-View-ViewModel.
It separates the UI logic from the business logic.
ViewModel acts as a mediator between Model and View.
Data binding is a key feature of MVVM.
I have implemented MVVM in my previous Android projects using Android Architecture Components such as LiveData and ViewModel.
Q4. What is Broadcast Reciever?
Broadcast Receiver is a component of Android system that listens to system-wide broadcast announcements.
It is used to respond to system-wide broadcast announcements.
It is implemented as a subclass of BroadcastReceiver class.
It can be registered either statically in AndroidManifest.xml or dynamically in code.
Examples of system-wide broadcasts are battery low, network connectivity changes, etc.
Q5. Closure and its types
Closures are self-contained blocks of functionality that can be passed around and used in your code.
Closures capture and store references to any constants and variables from the context in which they are defined.
There are three types of closures: Global functions, Nested functions, and Closure expressions.
Closure expressions are unnamed closures written in a lightweight syntax that can capture values from their surrounding context.
Q6. What is Rx Java .?
RxJava is a library for composing asynchronous and event-based programs using observable sequences.
RxJava is a Java implementation of ReactiveX, a library for composing asynchronous and event-based programs using observable sequences.
It provides a set of operators to transform, filter, and combine these sequences.
RxJava can be used for network calls, database operations, UI events, and more.
It simplifies concurrency and makes code more readable and maintainable.
Example: Obser...read more
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month