User Defined Exceptions:
In some situation a programmer needs to create and throw his own created exception and such type of exceptions are known as User defined Exception or Custom Exceptions.
To create own exceptions we have to Extend t...
VTABLE- C++ uses a special form of a runtime method binding to implement virtual functions which is called virtual table. Virtual table is a table of functions used to accomplish function calls in a dynamic binding manner. Virtual bin...
What are the different ways to redirect page in javascript?
Page Redirection is a situation when a user locates from one page to another. There are two kinds of redirect :
Server side redirect : In this, ser...
Checked Exceptions:
Checked Exceptions are those exceptions which are checked during compile time. If a program contains checked exception then it should be handled using try-catch block or by using throws keyword, otherwise there will be a co...
Below are some important difference between C , C++ AND OBJECTIVE-C
C is a procedural language. C++ is procedural as well as object oriented programming language. Objective-C is a general-purpose, high-level, object-oriented programming lan...
History of Objective C
Brad Cox and Tom Love are those famous personalities who invented Objective C in 1980 for their company Step stone. They introduced Smalltalk at ITT corporation's programming technology centre in 1981.
Brad ...
Selectors, as the name suggests, are used to select one or more HTML elements using jQuery. Once an element is selected we can perform various operations on that selected element. jQuery selectors are used to access HTML elements through their id...
What is Operational Testing Or Operational Acceptance Testing ?
Operational testing or Operational acceptance testing is a testing approach which is executed to confirm the operational or functional readiness (pre-release or beta release) of a...
Thread pool basically manages the pool of worker thread or it manages the collection of runnable and worker threads execute Runnable from queue.
Here is an example of creating threads 20 times and calling its runnable methods like this :
...
To make Custom Button in android follow the steps mentioned below:-
1) Create a drawable resource file in your drawable folder and name it custom_button.xml.
2) Add the code written below in your custom_button.xml file .
custom_but...
Java code file is neccesary to run the particular project and sometimes java file contains 100 lines of code or more and in that case,there are more possibilities to get error(on in future,will get error).So in this case,Android provide a feature...
We have a search edit text and a list in layout , activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_...
RenderScript is used to run high performance tasks in Android. RenderScript is plateform- Independent.
RenderScript added from API-17 but added support later.
For adding support for RenderScript in Android Studio add below lines in build.gr...
Hello All !!!
I have got so many queries regarding GIF animation file.
question is "How to create a Good quality Animated GIF file ?"
Here is the answer ...
I have a flying girl animation in flash.
Flash do pr...
Thread is basically used to execute something in android. Thread class provides start method to start a new thread as well as we can also use Runnable interface to create some thread.
So there are two way to create a thread that are :
1. By...
We know that a normal thread doesn't maintain any message queue they runs one after another but in case we want to performs more thread then we used looper class to maintains all runnable messages in queue and runs them one by one .
Here i...
Multithreading is a meachanism where a one user can access more than one process or you can say that an operating system can perform more than one operations simultaneously.
In Android we have two types of thread that are Main thread and...
What Is Test Approach ?
A test approach is the test procedure accomplishment of a product which describes that how can testing would be conducted. Normally there are two mechanisms in test approach, mentioned as below:-
Reactive
Proact...
NVD3 is a very powerful java script library to render web based graphs. It automatically handles the scaling and plotting by itself. We just need to concern the data.
NVD3 just takes data and render the graph.
Data Format : NVD3 expect an a...
Now a days android studio has provided pretty simple and easy GUI for creating key-store from the IDE itself but in case if you have some need for creating it through the command line here is a simple tutorial for the same.
Step 1. &...
Hey guys! I want to write a program that finds the sum of cubed terms. i.e. 1**3 + 2**3 + n**3
I wrote down the following code:
// n = input('Give the value of n.')
n = int (n)
s = ((n(n+1))/2)**2
print ('Sum...
Below is the code that will show the full size image in a dialog box popup without defining layout xml file .
In the code below I have taken two imageview named profile_pic and pro, to get the OnTouchListener action of particular ima...
Like a linked list we can also delete a node from binary search tree. This operation perform O(log(n)) time complexity.
Here is an example of deletion :
private TreeNode delete(TreeNode rootNode, int k)
{
// create a node to store tem...
In this example,we will have a layout in which there are two fragments in an activity.
In our mobile phone,we will show only one fragment but in tablets,we will show both fragments simuntanously.
activity_main.xml (for mobile phon...
Wrapper is generally defined as the packaging, or to bound an object.
A "wrapper class" is used to manage the resources so that it will be crystal-clear to every one. This wraps the resources by simply wrapping the pointer into an in...
What is Boxing and Unboxing?
There are various primitive data types in java such as byte, int, long. etc. We have wrapper classes corresponding to each of the data type in java.
Sometimes the values of primitive data types are needed ...
MySQL Temporary tables:
A temporary table allows a user to store temporary records and we can use these records several times until the session does not expire. They are useful in those situations when it is expensive to write a query havin...
What Is Scenario Testing In Software Testing ?
Scenario testing is an approach of the software testing which produces excellent utilization of the testing scenarios. Main benefits of the scenarios are supporting to test improve way to any comp...
CSS Media types
CSS media types is an important feature of CSS style sheet which specify how to format or present a document on different media i.e on screen, on paper, with speech synthesizer.
There are following different ...
I created the below scenario in a cucumber feature file and when I executed the scenario then I got gherkin.parser.ParseError
Scenario : The user should be able to login for correct credentials
Given I am at the Home page
...
Relation between generic type parameter and generic type definition is known as variance.
Covariance and contravariance are extensions for generic type parameters for arrays, delegates and interfaces.
1.COVARIANCE- In Covariance '...
Many time we need to split the data in our spreadsheet for this we can use SPLIT formula
lets take an example,
I have a large set of data which includes mail address like, sachin@gmail.com, findnerd@abc.com
in column A, so if I need to s...
EXISTS Operator:
Exists operator is a special type of operator which is used in a subquery. It is used to check whether a subquery returns something or not. If a subquery returns some row then outer query get executed otherwise the whole query...
Hi All,
If you want to setup Django framework in your system then you just need to read this blog only .
Python Installation : - You need to install python first.You can install python from here . I'm using 3.5.2 version of pyt...
Hi All,
In programming world, we have to perform some basic operation on list or tuple but in python , it is easy to perform any operation on list or tuple. for example:-
If you have a number tuple/list like
data = [[1,10,8], [4,...
Hi All,
In this blog, I will tell you , how to make a simple Sign-In/Log-In UI for User. I'm using python27 for this code. Python give you IDLE, which is a good python editor. There are many libraries to make User interface in python, but ...
Storage classes defines the scope of the variable in the function. Storage class specified for a variable shows that for how long time the variable will remain in the program and which section of the program will have the accessibility of the var...
In C++ scope resolution operator is used to define a function outside a class. If a user has a local variable with same name as global variable and wants to use a global variable the we use the scope resolution operator.
includ...
how to show nearest famous places to user location in maps in 50 miles or 100 miles etc.. i was lot searching in google'n but i can't find it could any one help me
In 3 basics steps,you can add volley to your project:
Step 1:First, you need to get the Volley source code:
Use Git to checkout the source code for Volley, preferably to the filesystem where your Android project lives.
git cl...
# include <stdio.h>
# define NO_OF_CHARS 256
bool areAnagram(char *str1, char *str2) //function checks whether two strings are anagrams.
{
// Create 2 count arrays and initialize all values as 0
int count1[NO_OF_CHARS] = {...
// C program to check whether two strings are anagrams
#include <stdio.h>
#include <string.h>
void quickSort(char *arr, int si, int ei); //Function declared for sorting a string
bool areAnagram(char *str1, char *str2) /...
This method is used to show() and hide the content of selected elements. show() method is execute when selected element content is hide while hide() method is execute when selected element content is visible.
The toggle() method toggles ...
What Is Fault In Software Testing ?
Normally software fault is also recognized as the bugs or defects, these emerges when the presumed results or prospective results does not equal with the real results or actual results.
This is also known...
Here is an small intro of unity initialisation function name start and Awake.
Start
Start function is called only if the script component is enabled.
Start and Awake both are only called once in a lifetime.
Start function is called up aft...
Imagine that your android app has been launched in Google Play Store for users to download and install it on their android phones or android tablet computers and the app has been doing well in the market. Your app has started to generate interest...
A pointer is a variable which is used to store the address as a value of another variable. Pointers are helpful with program's efficiency and allow us to handle unlimited amounts of data.
The following operations are performed wi...
To check the profanity in the text for multilanguage, here we use WebPurify web service. This web service provide various callable methods including check, checkcount, replace, return etc. But here we are using the replace method (webpurify.live....