Object Cloning in Java

Whenever we want to create an exact copy of an object, object cloning is used. So, clone() method of Object class is used to clone an object. The java.lang.Cloneable interface must be implemented by the class to create object clone. And If we d...

How to make ListView in Android studio ?

Here I have create a ListView app in android. In the Listview numbers of items shown in vertical scrollable list. In Listview items are automatically inserted to the list and In ListView Adapter pulls content and image from a source database cla...

Javascript The getFullYear() Method

Basically in Javascript getFullYear( ) method is used to return the full year based on the local time .Use this method instead of getYear( ) method . Syntax -> year.getFullYear(); // None parameter Return -> It return an absolute...

Final and Static Keywords in Java

Final and Static Keywords in Java The Keyword Final is used for declaring a class member as constant. The member declared as final cannot be overridden.To prevent a class from being inherited the Keyword Final is used. Initialization of a fina...

Javascript The getTime() Method

In Javascript , getTime() method return the numeric value ( in milliseconds ) corresponding to the time for the specified data according to universal time . Through this method you can assign a date and time to another Date Object. Basically thi...

Load Testing

What is load testing ? This is the simplest type of performance testing. The load testing comes under the non functional testing. A load test is commonly acted to understand the behavior of the software or application under a particular prospe...

The valueOf() Method

In Javascript ,valueOf() method is used to wrapped the primitive value of a String object .And this method is automatically call by javascript (from backend ). Syntax : stringobj.valuOf( ) // There is no parameter . In Javascript , this...

stdClass in PHP

"stdClass" is an void class of PHP. It can be as a act of the alternative of a associative array but works only on PHP 5 and more Any associative array. You thought it of a object as same in java or python. $info = array("question" => "sc...

JavaScript Object Properties

Properties are defined as the values that are associated with a JavaScript object.It is also called the very important part of Javascript. A JavaScript object is made up of a collection of un-ordered properties.It can be changes, added, deleted....

Javascript operator precedence

In Javascript , operator precedence is followed when we perform operators to evaluate mathematical calculation. Higher precedence perform before than the lower precedence i.e multiplication should be done before addition. Simple Example -> ...

Static Initializer Block

Static Initialization Block-SIB The Static members of the class are stored inside the Class Memory space in heap. The Static members can be accessed directly with the class name there is no need to create objects to access them. A block of ...

What are categories, content items, Sections & Articles in Joomla?

Sections and Categories: Sections and Categories in Joomla are used to organise or manage the articles. A section have one more categories and a category have one or more articles assigned to it. An Article in Joomla is associated with exactly...

JavaScript Popup Boxes

Alert Box An alert box is used if you want to make sure that user has provided the information . user have to click "OK" to proceed whenever pop-up arises. Syntax window.alert("sometext"); Example: <!DOCTYPE html> <html>...

HTML Event Attributes

Let us discuss some of the HTML Events Attributes: 1. oninput 2. onselect 3. onchange 4. onsubmit 5. onkeypress 6. onresize Let us discuss it one by one 1. oninput - When an element get the user input, this attribute fires autom...

Encapsulation

Encapsulation is a concept of wrapping up of data into a single unit and hiding implementation details from the user. If we use the private method then they can not be accessed in the other class. If we put a getter setter method to update ...

Final Keyword

Final is keyword that can be used before a class or method or a variable. Final Class They can not be subclassed and the method in it are by default final. public final class MyFinalClass {...} public class ThisIsWrong extends MyFinal...

Why String is an immutable class in Java ?

Why String is an immutable class in Java ? Before going for the above question we should be clear what are Immutable classes ? Immutable classes are the one which once created, then its instances can not be changed. Objects of the Immutabl...

How to write PHP code to select specific column and display rows respectfully??

I have wrote code for sqlite to select specific columns and display rows .. id condition lat long 1 Good 0.0 0.0 2 Poor 0.0 0.0 3 Good 0.0 0.0 When I select Good, It should display my lat & l...

How to use UIActivityViewController for sharing on iphone and ipad

Hello Readers, In order to share text or links from the application, you may use UIActivityViewController . This is an easy way to share from within the application. NSString *textToShare = @"text you would like to share" NSURL ...

Simplification of bug report data

Simplification of bug report data:- The sequence of actions that are applied on the software to reproduce the defect or bug, actually defines the way to get to the problem. A tester may detect a number of bugs during the testing session, howev...

How to move an article to archive status?

To move an article to archive status you need to follow the steps given below: Login the backend of the Joomla Site(Joomla administrator) Select Content (given in the menu at the top of the page) -> Article Manager. You will see a page w...

Difference between ServletConfig and ServletContext

ServletConfig ServletConfig is use to initialize a servlet. Its scope is within the servlet i.e.,when servlet starts executing, ServletConfig object will be available until execution of servlet is completed. For a particular servlet, there is ...

What is Agile Model?

What is Agile Model ? Agile model comes under the incremental model. Every application or software are expanded in the progressive or incremental way, quick period. In the agile model effects or impacts are appears in short growing or incrementa...

Access Modifiers

Access modifiers in java are used to control the access of other classes to access the class or method. There are different type of access modifiers used 1.Public-It is the default access modifier it means that your class or method is visib...

How to assign a module to specific pages in Joomla 3.1

Joomla assign positions to module i.e., position tells where you want to place th module in the page. You can assign the position by following steps: Login to backend of your website(Joomla administrator). Go to Extensions --> Module Man...

JavaScript String Operators

Basically string is used to hold the data in text form . Mostly used operation on string is to check the length of string , to concatenate with the help of + and += ,check for substring with the help of indexOf method and extract substring with t...

Wrapper classes in JAVA

Wrapper classes are used to convert any data type into an object. a wrapper class gets enclose around a data type and appears as an object. for example: int k = 100; Integer it1 = new Integer(k); The int data type k is converted into an o...

Memory Management in Java

Memory Management In Java The memory management is done in Stack and Heap in java. whenever the java command is triggered it divides memory in two parts(Stack and Heap) for the program, the Stack is used for the execution purpose and Heap is u...

How to hide a live site from others while developing?

Joomla provides you the facility to hide the live site from others while your are developing the site. For this you required to follow the steps given below: Login to the back-end of Joomla Site(Joomla administrator). Select Site -> Glob...

JavaScript indexof() and lastindexof() String Methods

indexof() method The indexOf() method gives the position of the first occurrence of a particular text in a string Example < !DOCTYPE html> <p id="see">I am Very good person</p> <button onclick="mydata()"...

Exception Hnadling

Exception handling in java is a way to catch error or exception Exception is an event that can occur during the execution of the program. We use try catch and final to catch error. When an error occur in a method it creates an object of ...

How to customise the information shown in the Login Form module?

To customize the information of Login Form module according to your requirement you need to follow the following steps: Login to the backend of Joomla site(administrator). Select Extensions -> Module Manager. A list module appears. Sear...

android google map is showing only one marker using volley library

I am using Google Map inside the "Fragment" using sqlite database connection through volley library. I have 4 location, but my map is showing only one marker. I don't know where exactly getting wrong. Where do I need to change in my code to...

Use multiple tables join in YII custom query

In yii we can write our custom or row query for complex queries here is an example of custom query with multiple table joins $data = Yii::app()->db->createCommand() ->select('column1.column2,column3.name') ->from('table') ->...

Difference between Array and Structures in C

ARRAYS 1). An array is a collection of homogeneous elements. 2. An array is a derived data type. 3) Any array is like a built-in data types. All we have to do is to declare an array variable so that we can use it. Example of Array to fin...

Difference between Test Plan and Test Strategy

1) A test plan is a document which describes the approach to test a system or a software product whereas Test Strategy is a guideline which describes the test design/methods and determines how the testing to be done. 2) Components of test plan i...

Test Data and its Importance

What is a test data? In order to test a software or product, we need to enter some data is known as a test data. It is generated by a tester or by automation tools to support testing. It affects the execution of a specific module.Test data may b...

How can I get a decimal number in text field?

Currently I am using this code: InputAmount = System.Int32.Parse(GameObject.FindGameObjectsWithTag("Amount")[0].GetComponent().text); Declare with float but how can I get a decimal number from the text field? Because I am doing a calculator...

How to build a native menu using ionic cordova?

I'm using ionic to build an hybrid application.I want to have some menus native (my menus are using ionic css and i think are not native).How i can build a native menu and what i should use ?

About Penetration Testing

Penetration testing is a type of security testing used to test the insecure or weak areas of the system or application. The idea of pentesting is to find vulnerabilities before they are found by other malicious agents. Types of Pen-testing ...

About Security Testing

Security testing can be check whether the application is secured or not and this concept covering the following thing: Data Security Network Security Data security is primarily focused on securing the data while storing or transmitting it. T...

How to enable CURD operation in YII

In yii we can create our basic code for 'CREATE',,'UPDATE','READ','DELETE' operations. for enable this functionality we need to enable curd. For enable curd go to your main.php file and find keyword 'gii' and you will see like this /* 'mod...

How to configure database setting in YII php framework

In 'config/main.php' file we have database setting in yii for set or change database open main.php file and search 'db' you will see something like this 'db'=>array( 'connectionString' => 'mysql:host=localhost;dbname=mydb', ...

Send Email functionality for android application in flash AS3

We can add the funtionality of sending email to our android app in Flash by just importing chunkmail ANE file. WE just have to import and hit the sendEmail() method. import com.turbidwater.chunkemail.ChunkEMail; import mx.events.FlexEvent...

How to make RecyclerView in Android studio?

Here, I have create a RecyclerView app in android .The RecyclerView is new advanced widget and flexible version of ListView.Below i have described step by step recycler view .. Step(1)- In (build.gradle) folder Add first dependencies . ...

Base64 encoding decoding in Android

For encoding and decoding we have Base64 class in android. For encoding in String we can use encodeToString (byte[] input, int flags) This method Base64-encode the given data and return a newly allocated String with the result. Parameters in...

onreset event in Javascript

The onreset is used event when we want to reset a form. it allows users to clear checkboxes or input field which refreshes the whole form. Syntax onreset = "JavascriptCode" <!DOCTYPE html> <html> <head> <script>...

HOW TO MAKE A MAIN MENU WITH SWIPING EFFECT IN FLASH

whenever we started to make a game first thing we need is Main menu, its our first screen and we have to make it user friendly, so that user find very easy how to play the game. when we have more than one stage in our game we need a menu so that...

Some Important HTML Codes for Blogging

Either you are a Professional Blogger or  doing Guest posting just for Knowledge sharing you must face HTML code problems. I know HTML is a web designing/ programming language but I think every Blogger must know some Basic HT...

Interface vs Abstract Class

Interface Interface can extend many interface. Interface can extend from a interface only. Interface have only abstract method by default. Interface can have public method only it it. Abstract Abstract can attend only on class at a time. ...
1 215 292