![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
![Raunak Jain](https://www.tutorialspoint.com/assets/profiles/256620/profile/60_114506-1601705566.jpg)
4K+ Views
The business-logic layer is a crucial component of a software application that handles the processing of data and implementation of business rules. It sits between the user interface (UI) layer, which is responsible for presenting data to the user, and the data access layer, which is responsible for storing and retrieving data from a database. The primary function of the business-logic layer is to process and validate user input, apply business rules, and prepare data for storage or presentation. It acts as an intermediary between the UI and data access layers, ensuring that data is properly formatted and meets the ... Read More
![Mr. Satyabrata](https://www.tutorialspoint.com/assets/profiles/526132/profile/60_3653035-1664258182.jpeg)
156 Views
As per the problem statement we need to find all the Emails present in the file. 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 there is given paragraph and it contains many different email ids and we want to extract all the mail id present in that paragraph. For e.g. − “I am a boy with email boy54@gmail.com. My friend’s email is friend78@gmail.com.”.” From the above paragraph, we need to take out the given two mail id in the paragraph i.e., boy54@gmail.com and friend78@gmail.com. Instance-2 ... Read More
![Mr. Satyabrata](https://www.tutorialspoint.com/assets/profiles/526132/profile/60_3653035-1664258182.jpeg)
4K+ Views
In this article, we will compare two different text files which are saved in our system. We will check line by line of each text file, by comparing those we can identify the similarities and differences. Let’s see how we can do it by using the Java programming language. To Show You Some Instances Instance-1 Below figure depict two different text files with same content and hence output will be two files with same content. Instance-2 Below represents two files, say file1.txt and file2.txt with their content. file1.txt This is amazing. Java Language. file2.txt This is amazing. Python ... Read More
![Mr. Satyabrata](https://www.tutorialspoint.com/assets/profiles/526132/profile/60_3653035-1664258182.jpeg)
5K+ Views
As per the problem statement, we need to find the first and last word of the given String. 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 there is String “Java is a well-known high-level, class-based object-oriented programming language that Sun Microsystems created and first distributed in 1995. Over 3 billion devices run Java, which is currently owned by Oracle” After printing the first and last word of this String i.e “Java” and “Oracle”. Instance-2 Suppose there is String “For the creation of their desktop, web, ... Read More
![Mr. Satyabrata](https://www.tutorialspoint.com/assets/profiles/526132/profile/60_3653035-1664258182.jpeg)
6K+ 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 separate odd and even elements into two separate arrays and print the result. A number is said to be an even number if it is divisible by 2, else the number is an odd number. Note − The array must be an integer array. In this article, you will see how to separate even and odd numbers of an array into two different arrays by using Java programming language. Let’s start. To Show ... Read More
![Mr. Satyabrata](https://www.tutorialspoint.com/assets/profiles/526132/profile/60_3653035-1664258182.jpeg)
943 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 increment all negative numbers by 1 and decrement all positive numbers by 1. 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 {12, 21, -31, -14, 56, 16, 17, -18, 9} After updating the array element are: -30 -17 -13 8 11 15 16 20 55 (sorted) Instance-2 Suppose the original array is {19, ... Read More
![Mr. Satyabrata](https://www.tutorialspoint.com/assets/profiles/526132/profile/60_3653035-1664258182.jpeg)
2K+ 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 delete or eliminate the odd numbers present in the array and print the even array. Note − The array must be an integer array. A number is said to be an odd number if the array is not divisible by 2. In this article, you will see how to remove odd numbers from an array by using Java programming language. Let’s explore. To Show You Some Instances Instance-1 Suppose the original array is ... Read More
![Mr. Satyabrata](https://www.tutorialspoint.com/assets/profiles/526132/profile/60_3653035-1664258182.jpeg)
3K+ 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 delete or eliminate the even numbers present in the array and print the odd array. Note − The array must be an integer array. A number is said to be an even number if the number is divisible by 2. In this article, you will see how to remove even numbers from an array by using Java programming language. Let’s explore. To Show You Some Instances Instance-1 Suppose the original array is {2, ... Read More
![Mr. Satyabrata](https://www.tutorialspoint.com/assets/profiles/526132/profile/60_3653035-1664258182.jpeg)
777 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 the array elements which are present in the odd position in an array and print them. A number is said to be even if it is divisible by 2 else it is called an odd number. Note − The array must be an integer 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 ... Read More
![Mr. Satyabrata](https://www.tutorialspoint.com/assets/profiles/526132/profile/60_3653035-1664258182.jpeg)
2K+ 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 the array elements which are present in the even position in an array and print them. A number is said to be even if it is divisible by 2 else it is called an odd number. 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 {12, 5, 77, 14, 91, 21, 1, 50} ... Read More