Articles on Trending Technologies

Technical articles with clear explanations and examples

Difference between HashMap and HashTable in Java.

Ankitha Reddy
Ankitha Reddy
Updated on 30-Jul-2019 21K+ Views

HashMap is non-syncronized and is not thread safe while HashTable is thread safe and is synchronized. HashMap allows one null key and values can be null whereas HashTable doesn't allow null key or value. HashMap is faster than HashTable. HashMap iterator is fail-safe where HashTable iterator is not fail-safe. HashMap extends AbstractMap class where HashTable extends Dictionary class.

Read More

How to exit from a Python if clause?

Malhar Lathkar
Malhar Lathkar
Updated on 30-Jul-2019 567 Views

It is not possible to exit from an if block of Python code. The break keyword does appear in if block but it has to inside a loop. It is however possible to exit from entire program from inside if block by sys.exit()

Read More

What is the use of FLUSH PRIVILEGES statement in MySQL?

Vrundesha Joshi
Vrundesha Joshi
Updated on 30-Jul-2019 7K+ Views

Actually, we need to perform flush-privileges operation to tell the server to reload the grant tables. This can be done by issuing FLUSH PRIVILEGES statement or by executing a mysqladmin flush-privileges or mysqladmin reload command. FLUSH PRIVILEGES is really needed if we modify the grant tables directly using such as INSERT, UPDATE or DELETE, the changes have no effect on privileges checking until we either restart the server or tell it to reload the tables. But, Privileges assigned through GRANT choice don't want FLUSH PRIVILEGES to take effect - MySQL server cannotice these changes and reload the grant tables instantly. ...

Read More

How to avoid Java code in jsp page?

radhakrishna
radhakrishna
Updated on 30-Jul-2019 314 Views

You can use JSTL, JSP Standard Tag Library or EL, Expression Language to avoid scriptlets.

Read More

What is string constant pool in Java?

Jai Janardhan
Jai Janardhan
Updated on 30-Jul-2019 969 Views

When you store a String asString str1 = "Hello";directly, then JVM creates a String object with the given value in a separate block of memory known as String constant pool.And whenever we try to create another String asString str2 = "Hello";JVM verifies whether any String object with the same value exists in the String constant pool, if so, instead of creating a new object JVM assigns the reference of the existing object to the new variable.And when we store String asString str = new String("Hello");using the new keyword, a new object with the given value is created irrespective of the ...

Read More

Default location for installation of SAP HANA Studio

SAP ABAP Expert
SAP ABAP Expert
Updated on 30-Jul-2019 782 Views

You can install SAP HANA studio on Linux platform without Root user. In Windows platform, you can perform the installation without administration rights but it will be available only to the user who has installed it.Default Location on Window Platform: C:\Program Files\sap\hdbstudioDefault installation Location under MAC OS: /Applications/sap/hdbstudio (old) or  /Applications/sap/hdbstudio.app (new)Default installation Linux x86 64 bit: /usr/sap/hdbstudio

Read More

How can we check that by default MySQL CHAR() function returns a binary string?

Sai Subramanyam
Sai Subramanyam
Updated on 30-Jul-2019 150 Views

With the help of CHARSET() function, we can check which string is returned by MySQL CHAR() function. Following result set will demonstrate it − mysql> Select CHARSET(CHAR(85)); +-------------------+ | CHARSET(CHAR(85)) | +-------------------+ | binary | +-------------------+ 1 row in set (0.00 sec)

Read More

Immutable String in Java

Sai Nath
Sai Nath
Updated on 30-Jul-2019 822 Views

In Java immutable objects are those whose data can’t be changed or modified (once modified). String class is immutable i.e. once we create a String object its data cannot be modified.

Read More

How to set all the border left properties in one declaration with JavaScript?

Sai Subramanyam
Sai Subramanyam
Updated on 30-Jul-2019 138 Views

To set all the border left properties in a single declaration, use the borderLeft property. You can try to run the following code to learn how to set the border left properties − Example Live Demo #box { border: thick solid gray; width: 300px; height: 200px } Demo Text Change left border function display() { document.getElementById("box").style.borderLeft = "thick solid #000000"; }

Read More

History of C++ language

Fendadis John
Fendadis John
Updated on 30-Jul-2019 3K+ Views

The C++ programming language has a history going back to 1979, when Bjarne Stroustrup was doing work for his Ph.D. thesis. He began work on "C with Classes", which as the name implies was meant to be a superset of the C language. His goal was to add object-oriented programming into the C language, which was and still is a language well-respected for its portability without sacrificing speed or low-level functionality.His language included classes, basic inheritance, inlining, default function arguments, and strong type checking in addition to all the features of the C language. The first C with Classes compiler ...

Read More
Showing 60861–60870 of 61,248 articles
Advertisements