
Search In
Singleton Bean Scope
The singleton bean is termed as a stateless bean i.e. it doesn't carry any state with it. Only one instance of the object is created which is defined by this type of bean. One instance is created per container.All the other b
Lets understand "Objects" in javascript.
Object: It is a collection of property and each property is associated with name value pair. The object can contain any data type.
Lets understand this with the help of an example:
var demoObj = {demoId = "
Please help me to resolve below error Getting Below error in Android studio after update the Compile and Build Tool version
Please find the attached bild.gardle file
early compileSdkVersion 21 buildToolsVersion "22.0.1"
and aslo added be
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 compile-
#include<stdio.h>
int maxDiff(int a[], int size)
{
int max_diff = a[1] - a[0];
int i, j;
for(i = 0; i < size; i++)
{
for(j = i+1; j < size; j++)
{
if(a[j] - a[i] > max_diff)
max_diff =
#include<stdio.h>
int maxDiff(int a[], int n)
{
int maxDiff = -1; // Initialize Result
int maxRight = a[n-1]; // Initialize max element from right side
for (int i = n-2; i >= 0; i--)
{
if (a[i] > maxRight)
Example of $(this) in jQuery:
$(document).ready(function(){
$('#div1').mouseover(function(){
alert($(this).text());
});
});
Example of this in jQuery:
$(document).ready(function(){
$('#div1').mouseover(f
Simple code of php for making tree using asterisk
It is easy to make tree using php in less no. of line of code. Here are few line of code that will help you to get desired output by using for loop with three variable i,j and k or this can be explai
Hello,
It is very simple to delete an item or row from any parse table from the code.
First, we need to create the object of the table that points that particular row and then delete it.
I create an object using object id and then execute
I was working on a huge data, around 10gb, which I needed to import on solr. So I split the data in 1gb files, then I imported the data in solr using the post method.
I ended up getting error:
SEVERE: java.lang.OutOfMemoryError: Java heap space.
S
