Govinda Sai has Published 44 Articles

Multilevel inheritance in Java

Govinda Sai

Govinda Sai

Updated on 10-Dec-2024 19:11:37

90K+ Views

Multilevel inheritance - A class inherits properties from a class which again has inherits properties. Example class Shape { public void display() { System.out.println("Inside display"); } } class Rectangle extends Shape { public ... Read More

How to draw a star in HTML5 SVG?

Govinda Sai

Govinda Sai

Updated on 16-Dec-2021 09:34:31

9K+ Views

SVG stands for Scalable Vector Graphics and is a language for describing 2D-graphics and graphical applications in XML and the XML is then rendered by an SVG viewer. Most of the web browsers can display SVG just like they can display PNG, GIF, and JPG.To draw a polygon in HTML ... Read More

What's the difference between "STL" and "C++ Standard Library"?

Govinda Sai

Govinda Sai

Updated on 24-Jun-2020 06:31:32

2K+ Views

The Standard Template Library (STL) is a software library for the C++ programming language that influenced many parts of the C++ Standard Library. It provides four components called algorithms, containers, functions, and iterators. Note that the term "STL" or "Standard Template Library" does not show up anywhere in the ISO ... Read More

What is The Rule of Three with reference to C++?

Govinda Sai

Govinda Sai

Updated on 23-Jun-2020 13:40:50

197 Views

The Rule of three is a rule of thumb when using C++. This is kind of a good practice rule that says that If your class needs any ofa copy constructor, an assignment operator, or a destructor, defined explicitly, then it is likely to need all three of them.Why is ... Read More

How to set line breaking rules for non-CJK scripts in JavaScript?

Govinda Sai

Govinda Sai

Updated on 23-Jun-2020 11:37:20

314 Views

Use the wordbreak property in JavaScript to set line breaking rules for non-CJK scripts. The following are CJK scripts: C for Chinese, J for Japanese, K for Korean.ExampleYou can try to run the following code to learn how to implement wordbreak property −           ... Read More

How to delete the duplicate values stored in reverse order from MySQL table?

Govinda Sai

Govinda Sai

Updated on 22-Jun-2020 12:35:57

357 Views

To understand this concept, we are using the data from table ‘Details_city’ as follows −mysql> Select * from details_city; +--------+--------+ | City1  | City2  | +--------+--------+ | Delhi  | Nagpur | | Delhi  | Mumbai | | Nagpur | Delhi  | | Katak  | Delhi  | | Delhi  | Katak  | ... Read More

How can SELECT, without reference to any table, be used to calculate expression in MySQL?

Govinda Sai

Govinda Sai

Updated on 22-Jun-2020 11:49:51

166 Views

With the help of following MySQL statement, we can use SELECT to calculate the expression −SELECT expression;The above statement is having no reference to any table. Followings are some examples −mysql> Select 10 DIV 5; +----------+ | 10 DIV 5 | +----------+ |        2 | +----------+ 1 ... Read More

How does MySQL determine the end of the statement?

Govinda Sai

Govinda Sai

Updated on 22-Jun-2020 11:06:30

201 Views

MySQL determines the end of a statement when it encounters any one of the followings −Semicolon(;)Generally, MySQL determines the end of the statement, single-line or multiple-line, when it encounters the termination semicolon(;). Consider the examples below, mysql> Select * from employee; (Single line statement) mysql> Select *     -> ... Read More

How can I create a stored procedure to delete values from a MySQL table?

Govinda Sai

Govinda Sai

Updated on 22-Jun-2020 05:38:01

3K+ Views

We can create a stored procedure with IN operator to delete values from a MySQL table. To make it understand we are taking an example of a table named ‘student_info’ having the following data −mysql> Select * from student_info; +------+---------+------------+------------+ | id   | Name    | Address    | ... Read More

How can we find out the storage engine used for a particular table in MySQL?

Govinda Sai

Govinda Sai

Updated on 20-Jun-2020 13:48:16

145 Views

The following MySQL statement can find out the storage engine used for ‘Student’ table in database named ‘tutorial’ −mysql> SELECT ENGINE FROM information_schema.TABLES   -> WHERE TABLE_SCHEMA = 'tutorial'   -> AND TABLE_NAME = 'Student'; +--------+ | ENGINE | +--------+ | MyISAM | +--------+ 1 row in set (0.13 sec)

Advertisements