- 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
Nishtha Thakur has Published 568 Articles
Nishtha Thakur
64 Views
You can create Octel Tuple from another collection i.e. List or arrays. For List, use the fromCollection() method.Let us first see what we need to work with JavaTuples. To work with Octet class in JavaTuples, you need to import the following package −import org.javatuples.Octet;Note: Download JavaTuples Jar library to run ... Read More
Nishtha Thakur
3K+ Views
Here we will see what are the differences between structures in C and structures in C++. The C++ structures are mostly like classes in C++. In C structure, all members are public, but in C++, they are private in default. Some other differences are listed below.C StructureC++ StructureStructures in C, ... Read More
Nishtha Thakur
118 Views
You can use the aggregate framework to get a particular element from the MongoDB array. To understand the concept, let us create a collection with the document. The query to create a collection with the document is as follows −> db.getParticularElement.insertOne({"InstructorName":"Larry", "InstructorTechnicalSubject":["Java", "C", "C++", "MongoDB", "MySQL", "SQL Server"]}); { ... Read More
Nishtha Thakur
2K+ Views
The memory layout for C programs is like below. There are few levels. These are −Stack SegmentHeap SegmentText SegmentData segmentNow let us see what are the functionalities of these sections.Sr.NoSections & Description1StackThe process Stack contains the temporary data such as method/function parameters, return address and local variables. It is an ... Read More
Nishtha Thakur
172 Views
You can use aggregate() method along with $sort() operator for this. To understand the concept, let us create a collection with the document. The query to create a collection with a document is as follows −> db.aggregationSortDemo.insertOne({"StudentId":98, "StudentFirstName":"John", "StudentLastName":"Smith"}); { "acknowledged" : true, "insertedId" : ObjectId("5c90140c5705caea966c5587") } > ... Read More
Nishtha Thakur
1K+ Views
In this section we will see what are the differences between macros and functions in C. The macros are pre-processed, so it means that all the macros will be preprocessed while it is compiled. The functions are not preprocessed, but compiled.In macros no type checking is done, so it may ... Read More
Nishtha Thakur
76 Views
The sorted() method of the LongStream class in Java returns a stream with the elements of this stream in sorted order.The syntax is as follows −LongStream sorted()To use the LongStream class in Java, import the following package −import java.util.stream.LongStream;Create a LongStream and add some elements −LongStream longStream = LongStream.of(80L, 35L, ... Read More
Nishtha Thakur
93 Views
You can use $in operator to find with multiple array items. To understand the concept, let us create a collection with the document.The query to create a collection with a document is as follows −>db.findByMultipleArrayDemo.insertOne({"StudentFirstName":"John", "StudentLastName":"Smith", "StudentCoreSubject":["Compiler", "Operating System", "Computer Networks"]}); { "acknowledged" : true, "insertedId" : ... Read More
Nishtha Thakur
541 Views
Here we will see what is re-declaration of global variables in C. Does C supports this or not. Let us see the following code to get the idea about it.Example#include int main(){ int a; int a = 50; printf("a is : %d", a); }Output[Error] redeclaration of ... Read More
Nishtha Thakur
4K+ Views
Here we will see what is the pre-increment and post-increment in C or C++. The pre-increment and post-increment both are increment operators. But they have little differences.The pre-increment operator increments the value of a variable at first, then sends the assign it to some other variable, but in the case ... Read More