Priya Pallavi has Published 44 Articles
Priya Pallavi
2K+ Views
volatile means two things −- The value of the variable may change without any code of yours changing it. Therefore whenever the compiler reads the value of the variable, it may not assume that it is the same as the last time it was read, or that it is the ... Read More
Priya Pallavi
2K+ Views
If we specify the negative value of the second argument then the digits before the decimal point would be deleted and rounded off. The number of digits to be deleted depends upon the value of the negative second argument. Following examples will demonstrate the change, depending upon the negative value ... Read More
Priya Pallavi
1K+ Views
No. Java constructor cannot return a value. If required, just create a method which calls the required constructor and returns the required value. See the example below.public class Tester { public Tester(){} public static Tester getInstance(){ Tester tester = new Tester(); return tester; } }
Priya Pallavi
443 Views
The word-spacing property is used to add or subtract space between the words of a sentence. Possible values are normal or a number specifying space. ExampleYou can try to run the following code to implement word-spacing property. Asia is a continent.
Priya Pallavi
256 Views
The font property is used as shorthand to specify the number of other font properties, such as font family, size, style, etc.ExampleYou can try to run the following code to learn how to work with font property: Applying all the properties on the text at once.
Priya Pallavi
2K+ Views
With the help of following MySQL query, we can get the first day of the current month −mysql> SELECT DATE_SUB(LAST_DAY(NOW()), INTERVAL DAY(LAST_DAY(NOW()))- 1 DAY) AS 'FIRST DAY OF CURRENT MONTH'; +----------------------------+ | FIRST DAY OF CURRENT MONTH | +----------------------------+ | 2017-10-01 | ... Read More
Priya Pallavi
9K+ Views
A segmentation fault occurs when your program attempts to access an area of memory that it is not allowed to access. In other words, when your program tries to access memory that is beyond the limits that the operating system allocated for your program.Seg faults are mostly caused by pointers ... Read More
Priya Pallavi
270 Views
Arguments object in JavaScript is an object, which represents the arguments to the function executing. Its syntax has two arguments:[function.]arguments[p]ExampleYou can try to run the following code to learn what are arguments object in JavaScriptLive Demo function functionArgument(val1, val2, val3) ... Read More
Priya Pallavi
717 Views
You can sort an ArrayList using the sort() method of the Collections class this method accepts a list object as a parameter and sorts the contents of it in ascending order.Example:import java.util.ArrayList; import java.util.Collections; import java.util.LinkedHashSet; import java.util.Set; public class ArrayListSample { public static void main(String[] args) { ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP