
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AmitDiwan has Published 10744 Articles

AmitDiwan
53 Views
To check this, use the concept of getter, i.e. the get property. Following is the code −Exampleclass Student{ constructor(studentMarks1, studentMarks2){ this.studentMarks1 = studentMarks1 this.studentMarks2 = studentMarks2 var alteredValue = this; this.getValues = { ... Read More

AmitDiwan
302 Views
Let’s say following is our string −my name is JOHN SMITHUse sort() along with regular expression /[A-Z]/ to move all capital letters to the beginning of the string/Examplevar moveAllCapitalLettersAtTheBeginning = [...' my name is JOHN SMITH '] .sort((value1, value2) => /[A-Z]/.test(value1) ? /[A-Z]/.test(value2) ? 0 : -1 : 0).join(' '); ... Read More

AmitDiwan
170 Views
Use the return keyword for outsider function call. Following is the code −Examplevar substractMethod = function () { var firstValue =1000, thirdValue= 200; var divideMethod = function (){ var secondValue =500; console.log("The result of divideMethod()="+(firstValue/secondValue)); return ... Read More

AmitDiwan
868 Views
When method is overloaded in Java, the functions have the same name, and the number of parameters to the function is same. In such cases, if the parameters are non-primitive and have the ability to accept null values, the compiler gets confused when the function is called with a null ... Read More

AmitDiwan
726 Views
For this, use the concept of toString(‘utf8’). Following is the code −In the code below, there are detailed explanations about the buffer.Examplevar actualBufferObject = Buffer.from('[John Smith]', 'utf8') console.log("The actual buffer object="); console.log(JSON.stringify(actualBufferObject)) console.log("Get back the original object="); console.log(actualBufferObject.toString('utf8')); var myObjectValue = '[John Smith]'; console.log("The data you are getting from the ... Read More

AmitDiwan
1K+ Views
Multiset is a collection in Java, that helps in order-independent equality, similar to Set structure. But the only difference is that a multiset can also contain duplicate elements.If multiset is visualized as a list, then this wouldn’t be the case since lists can’t hold duplicate values, and list elements are ... Read More

AmitDiwan
606 Views
In order to get rid of null values inserted into a table, you need to check the condition while entering the value.The condition to check NULL must be as follows −while( !( yourVariableName1==null || yourVariableName2==null || yourVariableName3==null…...N){ // yourStatement1 . . N }The above logic will ... Read More

AmitDiwan
307 Views
Multimap is a general method to bind the keys with random multiple values. The Multimap framework in Guava has methods that help in dealing with mapping keys to multiple values. Multimap can be visualized as a framework that −Is a collection of mapping from one key to one specific valueIs ... Read More

AmitDiwan
250 Views
Let’s say the following is our array &mius;var subjectNameAlongWithMarks = [ ["JavaScript", 78], ["Java", 56], ["JavaScript", 58], ["MySQL", 77], ["MongoDB", 75], ["Java", 98] ]Above, we have repeated values, which we need to remove by comparing the duplicate values 0th index. Use the concept of ... Read More

AmitDiwan
460 Views
For this, use jQuery() with id property. Following is the code −Example Live Demo Document .changeColor { color: red }; Javascript MySQL ... Read More