Generally to build applications for Android we should have Java Development Kit (JDK), Android SDK, and a development environment. The Android SDK is compatible with Windows, Mac, and Linux operating systems to build android applications based on our requirements. We can set up an Android development environment using the followingContinue Reading

Android architecture is a software stack of components to support mobile device needs. Android software stack contains a Linux Kernel, collection of c/c++ libraries which are exposed through an application framework services, runtime, and application. Following are main components of android architecture those are Applications Android Framework Android Runtime Platform LibrariesContinue Reading

Introduction to Android Android is an operating system which is based on the Linux kernel. Android system is also called as Android Open Source Project (AOSP), lead by Google. Android is used for mobile devices, such as smart phones and tablet computers. The Android application makes life more comfortable and advancedContinue Reading

What Are Regular Expressions in Java? In Java, Regex or Regular Expression is an Application Program Interface that helps in defining a pattern in order to search, manipulate and edit strings. Java regular expressions are widely used in the validation of passwords and emails. These expressions are provided by java.util.regex package and consists of 1 interfaceContinue Reading

Basics of Java Serialization. What is the concept of Java serialization? Answer: Java serialization is the process of turning an object into a stream of bytes or byte array. The byte array represents the class of the object, the version of the object, and the internal state of the object. WhatContinue Reading

What is multithreading in Java? Java multithreading enables the execution of multiple threads simultaneously. It allows a process to run its tasks in parallel mode on a single processor system. Now one question you may ask that what made this concept so famous. To get clarity, let’s see some ofContinue Reading

Java 5 introduced generic collections. The generic collections are more flexible and they are the preferred way to work with data. Generic collections enhance code reuse, type safety, and performance. There are many classes in the collection framework. Some of them, like ArrayBlockingQueue or IdentityHashMap, are specialized containers used in specific situations. WeContinue Reading

During the execution of our application many things might go wrong. A disk might get full and we cannot save our data. An Internet connection might go down while our application tries to connect to a site. A user fills invalid data to a form. These errors can crash theContinue Reading

What are Strings? A string in literal terms is a series of characters. Hey, did you say characters, isn’t it a primitive data type in Java. Yes, so in technical terms, the basic Java String is basically an array of characters. So my above string of “ROSE” can be representedContinue Reading

A package is a grouping of related types providing access protection and name space management. Packages in Java is a similar concept to namespaces in C#. Creating a package in Java A package is declared with the package keyword. This statement must be placed at the top of every source file. ThereContinue Reading