Vaibhav Mojidra's Projects
In Java Enterprise, AJAX (Asynchronous JavaScript and XML) is a technology used to create interactive and dynamic web applications. AJAX allows web pages to be updated asynchronously without requiring a full page reload, resulting in a smoother and more responsive user experience.
In Kotlin, an abstract class is a class that cannot be instantiated directly, but can be subclassed. It is used to define a common interface for a group of related classes, but without providing a complete implementation.
Anonymous inner class is a pretty good concept that makes the life of a programmer very easy. Whenever we are implementing an interface, the concept of anonymous inner block comes into picture. The concept of creating an object of interface using runtime object reference is known as anonymous class.
Kotlin arithmetic operators are used to perform basic mathematical operations such as addition, subtraction, multiplication and division etc.
In Kotlin, an array is a container that holds a fixed number of values of the same data type. Arrays are used to store and manipulate collections of data, such as a list of numbers, names, or any other type of data.
Kotlin assignment operators are used to assign values to variables. We used assignment operator += to add the value of self variable and assign it back into the same variable
Kotlin does not have any bitwise operators but Kotlin provides a list of helper functions to perform bitwise operations.
Kotlin break statement is used to come out of a loop once a certain condition is met. This loop could be a for, while or do...while loop.
A class is a blueprint for the objects which defines a template to be used to create the required objects. The objects are created from the Kotlin class and they share the common properties and behaviours defined by a class in form of data members (properties) and member functions (behaviours) respectively.
In Kotlin, a companion object is an object that is associated with a class and can be accessed using the class name. It's similar to a static method or field in Java.
The Kotlin continue statement breaks the loop iteration in between (skips the part next to the continue statement till end of the loop) and continues with the next iteration in the loop.
A Kotlin Data Class is used to hold the data only and it does not provide any other functionality apart from holding data.
Default parameter values is a feature in Kotlin that allows you to specify default values for function parameters. This means that you can provide a default value for a parameter, and if the caller doesn't provide a value for that parameter, the default value will be used instead.
Kotlin supports βdelegationβ design pattern by introducing a new keyword βbyβ. Using this keyword or delegation methodology, Kotlin allows the derived class to access all the implemented public methods of an interface through a specific object. The following example demonstrates how this happens in Kotlin.
Kotlin allows you to declare multiple variables at once. This technique is called Destructuring declaration. Destructuring Declarations in Kotlin is a feature that allows you to break down complex data types such as arrays, lists, maps, and objects into individual variables.
In Kotlin, var and val are used to declare variables. The main difference between them is that var declares a mutable variable, which means its value can be changed after it is initialized, while val declares an immutable variable, which means its value cannot be changed after it is initialized.
When Kotlin program reaches the do...while loop, it directly enters the body of the loop and executes the available code before it checks for the given condition. If it finds given condition is true, then it repeats the execution of the loop body and continue as long as the given condition is true.
Exception Handling in Kotlin is a mechanism that allows you to handle and recover from errors or unexpected events that may occur during program execution. Kotlin provides a comprehensive set of language constructs for handling exceptions.
Explicit type conversion: This involves explicitly converting a value from one data type to another using the appropriate conversion functions. For example, to convert an integer to a string, you can use the toString() function.
In Kotlin, an extension function is a function that can be called as a member function of a class, but is defined outside the class. Extension functions are a powerful feature of Kotlin that allow you to add new functionality to existing classes without having to modify their source code.
In Kotlin, extension functions allow developers to add new functionality to existing classes or types without modifying the original source code.
Kotlin for loop iterates through anything that provides an iterator ie. that contains a countable number of values, for example arrays, ranges, maps or any other collection available in Kotlin. Kotlin for loop is equivalent to the foreach loop in languages like C#.
In Kotlin, a function is a block of code that performs a specific task. Functions are used to modularize code, make it reusable, and make it easier to read and maintain.
Kotlin Generics are a way of writing reusable code that works with different types. Generics allow you to write code that can be used with any type of data, rather than being limited to a specific type.
Kotlin is a statically-typed programming language that runs on the Java Virtual Machine (JVM) and can also be compiled to JavaScript or native code. Kotlin was designed to be highly interoperable with Java, allowing developers to easily use Kotlin code alongside existing Java code.
In Kotlin, a higher-order function is a function that takes one or more functions as arguments and/or returns a function as its result. Higher-order functions are used to enable more concise and expressive code, as well as to implement advanced programming concepts such as functional programming and the use of lambdas.
If-else statement contains two blocks of statements. βifβ statement is used to execute the block of code when the condition becomes true and βelseβ statement is used to execute a block of code when the condition becomes false.