![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
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
Found 9326 Articles for Object Oriented Programming
![Mr. Satyabrata](https://www.tutorialspoint.com/assets/profiles/526132/profile/60_3653035-1664258182.jpeg)
86 Views
Java is one of the highly demanded careers, as well as most hired professions as Java, is a crucial language for businesses. While getting hired by the right company is prime for the employees, companies also have a set of terms and rules to hire the right Java developers for the technology function is essential for several organizations. In recent years, indeed has got posted seeking developers with Java skills by many recruiters in comparison to other languages. Java developers are typically hired through a combination of technical interviews and assessments, as well as more traditional hiring methods such as ... Read More
![Mr. Satyabrata](https://www.tutorialspoint.com/assets/profiles/526132/profile/60_3653035-1664258182.jpeg)
5K+ Views
In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have to find mean and median of an unsorted array in Java. Mean of an array can be derived by calculating the average value of all the elements present inside the array. Mean= (sum of all elements present in array) / (total number of elements present) Median of an array represents the middle element present in an odd number sorted array and if the sorted array consists of even number, then median can be ... Read More
![Mr. Satyabrata](https://www.tutorialspoint.com/assets/profiles/526132/profile/60_3653035-1664258182.jpeg)
13K+ Views
An array is a linear data structure in which elements are stored in contiguous memory locations. As per problem statement, we have to alter two array elements with each other. Altering two array elements in other words can also be called swapping or exchanging two elements with each other Let’s explore the article to see how it can be done by using Java programming language. To Show you Some Instances Instance-1 Suppose we have the below array = [10, 2, 3, -5, 99, 12, 0, -1] Now if we swap the 5th and 8th elements, Then, we have the new ... Read More
![Mr. Satyabrata](https://www.tutorialspoint.com/assets/profiles/526132/profile/60_3653035-1664258182.jpeg)
6K+ Views
Artificial Intelligence (AI) has been a hot topic for some time now & for good reason. AI has the potential to revolutionize many aspects of our everyday lives, from healthcare to education to transportation. The rise of artificial intelligence (AI), which has replaced all previous technologies, is being seen around the world. And one of the key technologies powering AI is Java. Exploring the Power of Java for AI Development Java is a popular programming language that was first released in 1995. It is known for its versatility & ease of use, which makes Java a great choice for AI ... Read More
![Mr. Satyabrata](https://www.tutorialspoint.com/assets/profiles/526132/profile/60_3653035-1664258182.jpeg)
1K+ Views
An array is a linear data structure in which elements are stored in contiguous memory locations. As per the problem statement, finding number elements smaller than a given number means we need to compare and count only the smaller elements in the array. Let’s explore the article to see how it can be done by using Java programming language. To show you some instances Instance-1 Suppose we have the below array [10, 2, 3, -5, 99, 12, 0, -1] and the number is 9 Now the number of elements that are smaller than 9 are [2, 3, -5, 0, -1] ... Read More
![Mr. Satyabrata](https://www.tutorialspoint.com/assets/profiles/526132/profile/60_3653035-1664258182.jpeg)
490 Views
In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have given a sub array and a number and we have to find how many elements in this sub array are greater than that given number. So, we have to compare every element of the array with the given number and print the element if anyone is greater. Let’s explore the article to see how it can be done by using Java programming language. To Show you Some Instances Instance-1 Given Array= [12, 23, 34, ... Read More
![Mr. Satyabrata](https://www.tutorialspoint.com/assets/profiles/526132/profile/60_3653035-1664258182.jpeg)
35K+ Views
An array is a linear data structure in which elements are stored in contiguous memory locations. As per problem statement, we have to find all the subarrays of a given array. Subarrays are part or a section of an array. When we talk about all subarrays of an array, we talk about the total number of combinations that can be made using all the elements of the array without repeating. Let’s explore the article to see how it can be done by using Java programming language. To Show you Some Instances Instance-1 Suppose we have the below array [10, ... Read More
![Mr. Satyabrata](https://www.tutorialspoint.com/assets/profiles/526132/profile/60_3653035-1664258182.jpeg)
142 Views
An array is a linear data structure in which elements are stored in contiguous memory locations. As per problem statement, we need to print all elements that have at least one smaller element. In simple terms we can say printing all elements of the array except the smallest one as the smallest one does not have any smaller element than this. Let’s explore the article to see how it can be done by using Java programming language. To Show You Some Instances Instance-1 Suppose we have the below array [10, 2, 3, -5, 99, 12, 0, -1] Now all elements ... Read More
![Mr. Satyabrata](https://www.tutorialspoint.com/assets/profiles/526132/profile/60_3653035-1664258182.jpeg)
4K+ Views
In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have to check whether one array is subset of another array. An array is a subset of another array if all the elements of subarray is present in the given array. Let’s explore the article to see how it can be done by using Java programming language. To Show you Some Instances Instance-1 Suppose the original array is array1 {33, 51, 5, 31, 9, 4, 3} The sub array is array2 {51, 9, 33, 3} ... Read More
![Satish Kumar](https://www.tutorialspoint.com/assets/profiles/562858/profile/60_1148539-1669800354.jpeg)
2K+ Views
Java Sockets are a powerful tool for creating network-based applications in the Java programming language. They allow for communication between different computers and devices, making it possible to create client-server applications, peer-to-peer networks, and other types of network-based systems. However, like any programming tool, Java Sockets have both advantages and disadvantages that need to be considered when designing and implementing network-based systems. Advantages of Java Sockets Platform Independence One of the biggest advantages of Java Sockets is that they are platform-independent. This means that the same Java code can be run on multiple operating systems and devices without the need ... Read More