Posts

Featured Post

OOPs Concepts

OOPs Concepts  An object is an instance of a class Object is a bundle of data and its methods (often called methods) Example:  class House { String address ; String color ; double are ; void openDoor () { //Write code here } void closeDoor () { //Write code here } ... ... } Abstraction : is the process where you only show "relevant " data and hide the "unnecessary" data from the user accessing the object. When you login to online banking, the only data shown to you is the username and password fields. The process of data transfer is hidden. Encapsulation : means binding object states (fields) and behaviors (methods) together. If you are creating a class, you are encapsulating. (Getters and Setters, making variables private etc.) Inheritance : means inheriting the properties and functionalities of another class. Is used for code re-usability Polymorphism : lets you to define a particular function is

Quick Data Structure Revision

1. ArrayList - Useful for storing data with no unique constraints and unknown size of data set. Time Complexity: Writing - O(1) Reading - O(1) Searching - O(N) Deleting - O(N) 2. Array - Useful for storing data with fixed data set. Generally faster than HashSets and ArrayLists. Vast usage of arrays includes: Storing of data, storing count of data, sorting data and binary searching. Time Complexity: Writing - O(1) Reading - O(1) Searching - O(1) Deleting - O(N) 3. HashSet - Useful for storing unique values of a data set. Time Complexity: Writing - O(1) Reading - O(1) Searching - O(1) Deleting - O(1) 4. HashMap - Useful for storing unique keys and its values. Values can be any data type of data structure. Time Complexity: Writing - O(1) Reading - O(1) Searching - O(1) Deleting - O(1) 5. TreeSet  - A Tree Set is a sorted HashSet. The java interpretation includes functions such as TreeSet.ceiling and TreeSet.floor which gets the closest

REST vs SOAP vs Microservices

REST vs SOAP vs Microservices SOAP : Simple object access protocol. It has a more rigid set of messaging patterns than REST. Relies exclusive on XML. SOAP need not necessarily be transmitted over HTTP, we can use other protocols such as SMTP etc.  REST : Representational state transfer uses URL and HTTP verbs such as GET, PUT, POST and DELETE to perform actions. Data is in JSON, CSV or RSS format. Soap Vs Rest SOAP is definitely the heavyweight choice for Web service access. It provides the following advantages when compared to REST: Language, platform, and transport independent (REST requires use of HTTP) Works well in distributed enterprise environments (REST assumes direct point-to-point communication) Standardized Provides significant pre-build extensibility in the form of the WS* standards Built-in error handling Automation when used with certain language products REST is easier to use for the most part and is more flexible. It has the following advanta

Introduction to ASHX files with JavaScript and AJAX call

Hello folks, This tutorial talks about ASHX files and how we can use them as server handlers. We will access the handler files by using JavaScript and  AJAX calls. Let's get started!

Uploading image to server from Phonegap android application using C#, JavaScript and BASE64 encoding.

Hello folks, This tutorial focuses on sending image to the server from your Phonegap android application using C#, JavaScript and BASE64 encoding. You can see my  earlier tutorial for accessing the camera and gallery of your android device. Let's get started.

Sending Push Notifications to android device through Google Cloud Messaging using C#

Hello folks, Last time we had documented the steps for registering your device with Google Cloud Messaging Push Notification service. Go to my previous blog . This blog talks about sending custom Push Notification to the device registered with GCM. Let's get started!

Push notifications for android application using PhoneGap, Html, javascript and C#

Image
Hello folks, Last time we had documented the steps for successfully building an android application which can access the camera and gallery. You can find the link to blog here . This blog talks about enabling push notifications in your application. Let's get started!