java

Android Speech to Text Example using SpeechRecognizer

This post is about how to implement speech to text feature in an android application using SpeechRecognizer. Speech to text means that anything that the user says is converted into text.

Android Speech to Text Example using SpeechRecognizer Read More »

Android read a file from assets in java/Kotlin

This article is about how to read a file from the assets folder in android in both languages Java/Kotlin. Creating Assets folder and a file 1. To create an asset folder in Android studio open your project in Android mode. Go to the app > right-click > New > Folder > Assets Folder.   2. Android Studio will

Android read a file from assets in java/Kotlin Read More »

Kotlin Abstract Classes and Abstract Members

In this article, you will learn about Kotlin abstract classes, abstract methods and how to use them in our program with the help of examples. Abstract Classes An abstract class is a class that cannot be instantiated (we cannot create objects of an abstract class). Syntax We use the abstract keyword to declare an abstract class. abstract class className

Kotlin Abstract Classes and Abstract Members Read More »

Java static Keyword(With Examples)

This post is about Java static keyword along with static methods, static variables, static class, and static blocks with the help of simple examples. Java static Keyword In Java, If we want to access class members without creating an instance of the class, we need to declare the class member with static keyword. In Java,

Java static Keyword(With Examples) Read More »

Java Access Modifiers

This post is about Access/Visibility modifiers in Java and how to use them. Access Modifiers In Java, access modifiers are used to set the accessibility (visibility) of classes, constructors, data members and methods in another classes.  There are four types of access modifiers available in java: Default : visible only within the package. Private: visible

Java Access Modifiers Read More »

Java Interfaces(with Examples)

This article is about interfaces and how to implement it in Java with the help of examples. Interface An interface in java is a collection of fields and abstract methods (only method signature, no body). Interfaces are by default prefix with abstract keyword, which means similar to abstract classes we cannot create an object of

Java Interfaces(with Examples) Read More »

Java Abstract Class and Abstract Methods

In this tutorial, we will learn about Java abstract classes and methods and how to use them in our program with the help of examples. Abstract Class An abstract class is a class that cannot be instantiated (we cannot create objects of an abstract class). Syntax We use the abstract keyword to declare an abstract class.

Java Abstract Class and Abstract Methods Read More »

Java Constructor in Inheritance

In this article, you will learn about Constructor behavior in Inheritance, in Java with the help of examples. A Constructor is a member function of a class that allows you to initialize a newly created object of that class type with some initial value and has same name as class with no explicit return type.

Java Constructor in Inheritance Read More »

Java Inheritance

In this tutorial, we will learn about inheritance in Java with the help of examples. Inheritance Java Inheritance is one of the key feature of OOP (Object Oriented Programming). Inheritance can be defined as the process where one class is allowed to inherit the features (fields and methods) of another class.  Inheritance supports the concept

Java Inheritance Read More »