- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Ankitha Reddy has Published 75 Articles
Ankitha Reddy
25K+ Views
Let us look at an example that creates a package called animals. It is a good practice to use names of packages with lower case letters to avoid any conflicts with the names of classes and interfaces.Following package example contains interface named animals −/* File name : Animal.java */ package ... Read More
Ankitha Reddy
3K+ Views
We should avoid using global variables in any language, not only C++. This is because these variables pollute the global namespace, can cause some very nasty bugs in big projects as they can be accessed from any file and hence be modified from anywhere. These are some of the reasons ... Read More
Ankitha Reddy
162 Views
LOAD DATAThis statement is used for importing the data from data files into our database. It reads data records directly from a file and inserts them into a table. Its syntax would be as follows −SyntaxLOAD DATA LOCAL INFILE '[path/][file_name]' INTO TABLE [table_name ];Here, a path is the address of ... Read More
Ankitha Reddy
2K+ Views
As we know that MySQL provides us loop statements that allow us to execute a block of SQL code repeatedly based on a condition. WHILE loop statement is one of such kind of loop statements. Its syntax is as follows −WHILE expression DO statements END WHILEActually, the WHILE loop checks ... Read More
Ankitha Reddy
69 Views
The column-span property is used to specify the span between columns. You can try to run the following code to implement column-span property using CSS −Example Live Demo .multi { /* Column count property */ -webkit-column-count: 4; -moz-column-count: 4; ... Read More
Ankitha Reddy
60 Views
As we know that the default format for MySQL DATE data type is “YYYY-MM-DD” and in this format, there is no possibility to store the time value. But still, if we store date along with time value in a column having DATE data type then MySQL will show a warning ... Read More
Ankitha Reddy
130 Views
Suppose we want to store the date such as February 30 in a MySQL table then we must have to first set ALLOW_INVALID_DATES mode enabled.For example, I am trying to add, without enabling ALLOW_INVALID_DATES mode, such kind of date in a table then MySQL will give an error as follows ... Read More
Ankitha Reddy
137 Views
The purpose of the comma operator is to string together several expressions. The value of a comma-separated list of expressions is the value of the rightmost expression. Essentially, the comma's effect is to cause a sequence of operations to be performed.The values of the other expressions will be discarded. This ... Read More
Ankitha Reddy
162 Views
for…in loopThe “for...in” loop is used to loop through an object's properties.Here’s the syntax −Syntaxfor (variablename in object) { statement or block to execute }You can try to run the following example to implement ‘for-in’ loop. It prints the web browser’s Navigator objectExampleLive Demo var aProperty; document.write("Navigator Object ... Read More
Ankitha Reddy
117 Views
Use the checked attribute to specify an element is to be pre-selected on page load. The attribute works with − .ExampleYou can try to run the following code to implement checked attribute in HTML − Live Demo Which sports do you like? Football Cricket Hockey