Hello guys, if you want to create client server application in Java then you need to learn Java networking API an classes like Socket and ServerSocket. In the past, I have showed you how to create an HTTP Client and Server in Java where I talked about these classes. In this Java networking tutorial, we will learn how to create a simple TCP server and Client in Java using networking classes provided by JDK in java.net package. Earlier, I have showed you how to create HTTP Server, which is actually a TCP/IP Server but here we'll do it again, along with writing a TCP client as well. Though you can test your TCP server using telnet, I'll show you how to connect to it using a TCP client written in Java.
Saturday, June 29, 2024
Monday, June 24, 2024
Top 5 SQL Server Tips for Beginners and Junior DBAs
Hello guys, If you are using Microsoft SQL Server database and use SQL Server Management Studio in your day to day work and looking for SQL Server tips to improve productivity and work fast and efficiently then you have come to the right place. Earlier, I have shared SQL Server online courses, SQL Server Interview questions and SQL Server Management Studio keyboard shortcuts and today, I am going to share amazing tips to make most of SSMS. These are the tips I learned hard way after working close to 8 years on SQL Server backend.
Labels:
best of javarevisited
,
Microsoft SQL Server
,
SQL
,
tips
Sunday, June 23, 2024
How to find smallest number from int array in Java, Python, JavaScript and Golang? [Solved]
This is the second part on this array interview question. In the first part, I have showed you how to find the largest element in array, and in this part, you will learn how to find the smallest number from an integer array. We will solve this problem on Java programming language but you are free to solve in any other programming language like Python or JavaScript. Most interviewer doesn't care much about which programming language you are solving the question, if you can provide working solution. This one is also a popular Java programming exercise which is taught in school and colleges and give in homework to teach programming to kids and engineering graduates.
Labels:
Array
,
Coding problems
,
data structure and algorithm
Friday, June 21, 2024
How to update an entity using Spring Data JPA ? Example Tutorial
Hello Java programmers and Spring Boot developers, if you are wondering how to
update an entity using Spring Data JPA and looking for a tutorial or example
then you have come to the right place. Earlier, I have shared the best Spring Boot courses and best Spring Data JPA Courses
and in this article, I will show you how you can update any entry using Spring
Data JPA?. How to update an entity using spring-data-JPA is also a
must-know topic when it comes to spring application development. Query methods
are supported by Spring for updating operations. Entities are typically modified
with
Hibernate
by retrieving them from the database, changing specific fields, and persisting
the entities.
Labels:
spring
,
spring data jpa
Monday, June 17, 2024
Top 15 NetBeans Keyboard Shortcuts for Java Programmers
In Java development there are three big IDEs, IntelliJ IDEA, Eclipse and NetBeans. In the past, I have shared Eclipse keyboard shortcuts and IntelliJ IDEA courses and today, I am going to share keyboard shortcuts for NetBeans, one of the first Java IDE I used in my career. I started doing Java development when JCreator was considered great because it can help with function names on objects but when NetBeans comes with features like built-in Tomcat and built-in profiler, it changed the game and I extensively used NetBeans for both web and mobile application development with J2ME. Since then a lot of water have flown in to Java world, InelliJIDEA become the defacto standard IDE for Java development with Eclipse as close second but unlike what many expected, NetBeans didn't die.
Labels:
best of javarevisited
,
Eclipse
,
Netbeans
Friday, June 14, 2024
Review - Is System Design Interview - An Insider's Guide by Alex Xu and Shan Lam worth?
Hello guys, if you are preparing for System design interviews or Software Design Interviews, then you must have come across System Design Interview - An Insider's Guide by Alex Xu and Shan Lam, one of the most popular book on System Design after Designing Data-Intensive Applications by Martin Kleppmann. I first come across Alex Xu on Twitter when one of his image about how HTTPS works went viral. The image was quite detailed and presentable so I start following Alex and then I come across ByteByteGo, his online System design course and his book System Design Interview - An Insider's Guide.
Labels:
books
,
Review
,
System Design
Sunday, June 9, 2024
How to show and hide a div using jQuery? show(), hide(), and toggle() function Example
So, you have a div element and you want to show or hide them may be on a click or during page load, how do you do that in jQuery? Well, jQuery provides convenient show() and hide() methods which can show or hide an element, including div. All you need to do is, write a jQuery selector to find the div you want to show or hide and then call jQuery function show() or hide() depending upon your requirement. You can also use the toggle() function to switch between showing and hiding. This method will make element visible if its hidden and vice-versa. To select the div you can use either element, id or class selector but I recommend to use the ID selector because it will work even if you have multiple div in your page.
Labels:
HTML and JavaScript
,
JQuery
Thursday, June 6, 2024
How to version REST API? URL vs Header Versioning? Example Tutorial
Designing a real world, industry standard RESTful API can be a tricky challenge becuase there is no real standard exists. To add into that, there is also a lot of confusing topics e.g. PUT vs POST for creating and updating resources, or using URL or Header for versioning. There are a lot of advices you will find on internet often confusing and advocating one or other alternative, but it ultimately depends upon your own wisdom and use cases to come up with elegant RESTful URIs, which supports both filtering and versioning. There are both pros and cons of URL versioning and Hypermedia version, which we'll discuss in this article, but the most important lesson to learn is that you should always version your REST API.
Labels:
Java Web Service Tutorial
,
REST
Sunday, June 2, 2024
Top 20 Spring Boot Interview Questions with Answers for Java Developers
Hello Java developers, there is no doubt that the Spring Boot is now the standard way to develop Java application using Spring Framework, and that's why Spring Boot Questions are increasingly becoming popular on Java interviews. In the past, I have shared many Spring MVC interview questions in this blog like the @RestController vs. @Controller, but I haven't got a chance to share any questions on Spring Boot, Spring Cloud, and Microservices. After a couple of personal requests from my readers, I thought to write about, and here comes my list of top 20 Spring Boot interview questions for Java developers.
Labels:
interview questions
,
spring
,
spring boot
,
spring interview questions
Subscribe to:
Posts
(
Atom
)