Ankitha Reddy has Published 69 Articles

Making a Java string all uppercase or all lowercase.

Ankitha Reddy

Ankitha Reddy

Updated on 20-Sep-2024 21:41:11

2K+ Views

In this program, we will convert a string to both lowercase and uppercase using toLowerCase() and toUpperCase() methods of Java. The toUpperCase() method converts all of the characters in this String to upper case using the rules of the default locale. The toLowerCase() method converts all of the characters in ... Read More

What are the advantages of CSS?

Ankitha Reddy

Ankitha Reddy

Updated on 28-Aug-2024 15:53:53

17K+ Views

CSS or Cascading Style Sheets is used to design the web pages, it helps web developers to control the layout and other visual aspects of the web pages. Using CSS, you can control the color of the text, the style of fonts, the spacing between paragraphs, how columns are sized ... Read More

Java Naming Conventions

Ankitha Reddy

Ankitha Reddy

Updated on 22-Aug-2024 12:12:47

3K+ Views

All Java components require names. Names used for classes, variables and methods are called identifiers. The naming conventions for different Java components are as follows: Package Naming Convention Class Naming Convention ... Read More

How to run Java package program

Ankitha Reddy

Ankitha Reddy

Updated on 26-Oct-2023 02:32:02

33K+ 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

Why should we avoid using global variables in C/C++?

Ankitha Reddy

Ankitha Reddy

Updated on 24-Jun-2020 06:10:51

4K+ 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

What is MySQL LOAD DATA statement?

Ankitha Reddy

Ankitha Reddy

Updated on 22-Jun-2020 08:27:00

272 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

How MySQL WHILE loop statement can be used in stored procedure?

Ankitha Reddy

Ankitha Reddy

Updated on 22-Jun-2020 06:08:42

3K+ 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

CSS3 Multi-Column column-span Property

Ankitha Reddy

Ankitha Reddy

Updated on 21-Jun-2020 06:28:59

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

How MySQL evaluates if I store date along with time value in a column having DATE data type?

Ankitha Reddy

Ankitha Reddy

Updated on 20-Jun-2020 07:04:43

127 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

How is it possible to store date such as February 30 in a MySQL date column?

Ankitha Reddy

Ankitha Reddy

Updated on 19-Jun-2020 13:57:07

203 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

1 2 3 4 5 ... 7 Next
Advertisements