Learn Java and Programming through articles, code examples, and tutorials for developers of all levels.
Monday, September 30, 2024
When to use PUT or POST in a RESTful API and Web Service? Answer
Thursday, September 19, 2024
Review - Is IT Fundamentals for Cybersecurity Specialization on Coursera Worth it?
Learning the information technology (IT) fundamentals in general and cyber security is a good investment in yourself since there is a massive demand for these skills. Companies need people to secure their infrastructure, such as their servers where they host the website and user's data, monitor their network for unauthorized access, and scan the employee computers for any trojan and viruses that could give hackers control over your system.
Tuesday, September 17, 2024
What is Backend for front-end Pattern? How to use it?
In the realm of microservices architecture, designing efficient communication between front-end applications and the back-end services is crucial. The Backend for Front-End (BFF) pattern has emerged as a useful architectural pattern to streamline this communication. In this article, we will delve into what the Backend for Front-End pattern is, its benefits, and how to effectively implement and utilize it in your microservices ecosystem.
What is Backend for front-end Pattern? How to use it?
How to Use the Backend for Front-End Pattern
Identify the Front-End Application
Understand the Front-End Requirements
Design the Backend for Front-End Service
Define Tailored APIs
Aggregate Data and Handle Complexity
Optimize Performance
Maintain Separation of Concerns
Handle Security and Authorization
Evolve and Scale
Benefits of the Backend for Front-End Pattern
Considerations for Using the Backend for Front-End Pattern
Conclusion
Review - Is IBM Data Analytics with Excel and R Professional Certificate Worth it?
Companies are always collecting data about their customer’s behavior on their platform or maybe their products review and many other standards to make better decisions to improve their services and the user experience. Still, this data needs someone who can leverage the power of the data to make decisions, which is the role of data analysts. This career is one of the hottest in this century. Analyzing the data to get insight and better understand your users and customer will help you make your business successful or maybe have a good position in a company.
Monday, September 16, 2024
Review - Is Data Science Fundamentals with Python and SQL Specialization on Coursera Worth It?
The demand for people who can analyze big data and extract meaningful information to drive decisions for companies is increasing every day. They need them to improve the quality of their services and deliver the best user experience for their customers. These actions are the responsibility and the role of the data scientists. Data scientists need to know many skills to perform the data analysis and make decisions such as the skills to collect data from different sources like the web and also extract and filter the data from the databases and clean them before performing analysis and even learn machine learning and deep learning to perform much more complex actions and make predictions but not all the data scientists know the artificial intelligence and not a mandatory skills. Still, it will be good if you have that in your belt.
Saturday, September 7, 2024
How to Print Prime Numbers from 1 to 100 in Java [Solved]
Friday, September 6, 2024
How to count a number of words in given String in Java? [Solved]
public int count(String word);
This method should return 1 if the input is "Java" and return 3 if the input is "Java, C++, Python". Similarly a call to wordCount(" ") should return 0.
Wednesday, September 4, 2024
3 ways to Find Duplicate Elements in a given Array in Java [Solved]
How to Perform Union of Two Linked Lists Using Priority Queue in Java? Example Tutorial
3 ways to Count words in Java String - Google Interview Questions with Solution
Tuesday, September 3, 2024
Review - Is Google Data Analytics Professional Certificate Really Worth it in 2024?
Hello friends, if you want to become a Data Analyst in 2024 and looking for best online courses, guides, and tutorials to learn Data Analysis then you have come to the right place. In the past, I have shared best Data Analysis courses, Books, and 2024 Data Analyst RoadMap, and in this article, I will share one of the most popular Coursera course to learn Data Analytic, Google Data Analytics Professional Certificate. With more than 800,000 enrollments on Coursera this is one of the most popular Data Analytics course on Coursera and why not? Its created from Google itself. It's also well structured, up-to-date and you will learn all essential Data Analytics skills from Google experts.
3 ways to check if a String contains SubString in Java? IndexOf, contains, and lastIndexOf Example
How to make Immutable class in Java? Mutable vs Immutable Objects
How I make immutable objects in Java? I've always thought that all objects are immutable, because if you change the content of an String example, it will always create you an new String object and point to that. However later I found that String is a special class and its specially designed as an Immutable class because its often cached. Obviously you cannot cache anything which is not constant and that make sense why String is Immutable in Java. But this encouraged me to learn more about Mutable and Immutable class in Java and how to create a custom Immutable class in Java.
Difference between StringTokenizer and Split method in Java? Example
1) The StringTokenizer is legacy, Prefer split() as more chances of its performance getting improved as happens in Java 7.
2) The StringTokenizer doesn't support regular expression, while spilt() does. However, you need to be careful, because every time you call split, it creates a new Pattern object and compiles expression into a pattern. This means if you are using the same pattern with different input, then consider using Pattern.split() method, because compiling a pattern takes more time later to check whether a given string matches a pattern or not.
5 ways to Compare String Objects in Java - Example Tutorial
Monday, September 2, 2024
4 ways to read String from File in Java - Example
Just like there are many ways for writing String to text file, there are multiple ways to read String form File in Java. You can use FileReader, BufferedReader, Scanner, and FileInputStream to read text from file. One thing to keep in mind is character encoding. You must use correct character encoding to read text file in Java, failing to do so will result in logically incorrect value, where you don't see any exception but content you have read is completely different than file's original content. Many of the method which is used to read String by default uses platform's default character encoding but they do have overloaded version which accepts character encoding.
How to download a file using HTTP in Java? Example
Hello guys, if you are looking for tutorial to understand about how to download a file using http in Java to have deep knowledge of java basics then you will definitely learn from this article. uploading and downloading files are common task but many Java developer are not aware about how to complete that. They don't know about HTTP and how to send and receive data using HTTP. Many of them also doesn't know about HttpClient which was added in JDK 11 as well as third party libraries like Apache HttpClient which you can use before JDK 11. Anyway, don't worry, we are again here with new article that is on download file using http will give all basics about the topic to our viewers or readers. Let's start with an example first.