Found 9289 Articles for Object Oriented Programming

169 Views
This sheet provides a wide range of questions on data structures and algorithms. It includes dynamic and trending topics that match industry-level requirements. Firstly, you have to learn any programming language like C, C++, Java, etc. and after getting a better understanding of the concepts and language specifics, practice these questions for the mastery of DSA. Here is a list of topics featuring the most frequently asked problems in Data Structures and Algorithms: Array String Stack Queue Linked List ... Read More

140 Views
Introduction Node.js is trending as an environment where different efficient and logical applications are executed at the moment. One of them is extending modern JS syntax, for example, classes, which makes OOP in Node.js more possible to use and improve. Scroll down to learn what a class is in Node.js, how one can be defined, how methods can/must be added, subclass/superclass in Node.js, and some uses of classes in Node.js. What is a Class in Node.js? A class is a blueprint of objects that have certain characteristics and behaviors or actions. Classes were introduced in ECMAScript 2015 ( ES6) as ... Read More

816 Views
Programming is a technique which is used to resolve different types of problems with the help of a programming language. Different types of programming languages are available which have their own syntax and methods of programming. Each programming language supports different paradigms like functional, logical, object-oriented, etc. In this article, we will discuss the difference between functional and logical programming. What is Functional Programming? Functional programming is a paradigm in which functions are used to write code and execute a program. High-level languages are used to write such programs which consist of one or more functions. An example can be ... Read More

3K+ Views
Programming is of different types like structured, procedural, functional, object-oriented, etc. All these programming types have different features and developers have to choose the one to develop a program or an application. In this article, we will discuss the difference between structured and object-oriented programming. What is Structured Programming? Structured programming is a type of programming in which separate modules are used to develop a program. All these modules are properly structured. This is a type of programming in which developers have the opportunity to create user-defined functions. Programmers can follow the logic of the program easily. Programming languages that ... Read More

906 Views
In a Java environment, every variable contains with some data types, which specify the value and type of a sorted identifier. There are two categories − Primitive Data type Non-Primitive Data type or Object data type The primitive data types are some predefined data types with some specific size and type. This method has some standard values with the types know as byte, short, int, long, float, double, char and boolean. When we want to run a primitive structure, then it stores the data in a stack and assign a value for the process. On the other hand, ... Read More

5K+ Views
The file class is a representation of directory path name in Java with different formats on different platforms. The file class contains the method of different path name which is responsible for deleting and renaming files by using the new directories. It is an abstract class in a string formation which can be either absolute or relative. Algorithm to of Convert Byte[ ] Array to File In this possible algorithm, we are going to show you how to perform a conversion process on a byte() array node to make it a file. By using this algorithm, we are going to ... Read More

1K+ Views
The LinkedHashMap Class is an one type of Hash Map which enables an user to maintain a systematic cronology of the elements present into it. This feature also provides the method of insertion, search and deletion in a quick manner. When we need to convert an array list to a linked hash map, we need to set a key value for this and it reflects as the index of an array list. In terms of the process of the iteration and the data sorting, array list and linked hash map; both are same in nature. Here is a general example ... Read More

4K+ Views
In Java the List is a child interface class which can also represents a Collection set. It is an ordered collection set, consists of the objects where duplicate values can be sorted also. Java array list is a collection framework as it presents into the java.util package and provides the dyanamic array elements in Java. For the ArrayList we do not have to mention the size of the list. On the other hand, the HashMap is a Java collection which can be found as a package in java.util. It contains the data values as a pair of (Key, Value).Basically, there ... Read More

253 Views
Containerization is a Java embedded process, which is able to pack the Java service or an application within a software container class. It includes every component which needs to execute the process within the packet. Containerized Java applications have lots of benefits with − Granullar stability − It makes the content more stable and easily scale up the value of the content. Flexibility − It develops the flexibility to enhance the experiment process. Resilience − Helps to avoid the cascading failure of an application. Cost − As the process is the embedded one, so the cost is low. ... Read More

274 Views
If any particular method encountered the concurrent in a multi threaded Java environment during the resource detection then the ConcurrentModificationException might be thrown. In this process the object is a non permissible unit here. Here is an example related to the ConcurrentModificationException in Java − Exception in thread "main" java.util.ConcurrentModificationException at java.base/java.util.ArrayList$Itr.checkForComodification(ArrayList.java:000) at java.base/java.util.ArrayList$Itr.next(ArrayList.java:000) atcom.journaldev.ConcurrentModificationException.ConcurrentModificationExceptio nExample.main(ConcurrentModificationExceptionExample.java:00) For this particular process the exception is achieveable when − The exception detected and iteration is in not defined in the method. When the process blocked in a loop of fail fast iterator by using an internal flag called modCount. ... Read More