How to Create a Dynamic Java Web Application
Developer.com » Java
by Developer.com Staff
2d ago
There are two types of web apps that developers can create in Java: static and dynamic applications. Static web apps render the same exact content whenever a client asks for it, while dynamic web apps allow for particular content to be created for each web page. This can be useful in cases where you would like different users to view different information. Read: Best Kanban Tools for Developers A static page is usually an html file (or a jsp file). However, when it comes to dynamic web pages, web developers need a servlet to create a page whenever a user makes a request to the server. This pr ..read more
Visit website
How to Create an HTTP Client in Java
Developer.com » Java
by Developer.com Staff
3d ago
The Internet consists of thousands of web applications that communicate with each other everyday. These applications usually communicate via HTTP (HyperText Transfer Protocol). HTTP is an application layer protocol that enables web applications to transfer data between each other (ie; communicate). HTTP generally follows a client-server architecture. The client initiates the communication with a server by sending an HTTP request. The server then responds with an HTTP response. In this programming tutorial, developers will learn how to create a simple HTTP Java client to communicate with an HT ..read more
Visit website
How to Use Maven for Project Management in Eclipse
Developer.com » Java
by Developer.com Staff
4d ago
Maven is a Java project management tool based on a Project Object Model (POM). It is an open source project that allows project managers and developers to create, build, manage, and test software development projects. This programming tutorial discusses why – and how – you should use Maven as your project management software. Benefits of Maven as a Project Management Tool As a developer, you may decide to build your projects from scratch; however, this may be a time consuming and tiring process. Here are some features that Maven possesses that can help you ease project development and better m ..read more
Visit website
Working with Floating Point Numbers in Java
Developer.com » Java
by Manoj Debnath
6d ago
There are two types of numbers we typically use for most purposes in programming: integers and floating-point numbers. Integers are non-fractional numbers that can be either positive or negative. The calculation and storage operations performed on these numbers are relatively simple. This makes working with them quick and efficient and is recommended wherever applicable to use them in all possible calculations. In Java, (depending on the data type), integers can range from -9,223,372,036,854,808 to 9,223,372,036,854,807. Floating-point numbers, meanwhile, can be thought of as decimal point num ..read more
Visit website
Type Conversion in Java
Developer.com » Java
by Developer.com Staff
2w ago
In computer programming, type conversion refers to evaluating an expression to a given data type. This evaluation can be between primitive or reference types. In this programming tutorial, we explore the concept of type conversion in Java, alongside code examples and use cases. Read: Top Java Online Training Courses and Bundles What is Boxing in Java? Boxing refers to the conversion of any one of the eight primitive data types available in Java (boolean, byte, short, char, int, long, float, and double) to the corresponding wrapper classes (Boolean, Byte, Short, Character, Integer, Long, Float ..read more
Visit website
How to Prevent Thread Deadlock in Java
Developer.com » Java
by Joydip Kanjilal
2w ago
Whenever two or more threads are waiting for one another to finish accessing a resource, a deadlock occurs. This programming tutorial presents a discussion on deadlocks, what causes a thread deadlock, and how programmers can prevent thread deadlock in Java. Before reading this tutorial, you might want to read our guide: Introduction to Multithreading in Java. What is a Deadlock? In computing, a deadlock occurs when two or more concurrent operations are waiting for one another to complete. In other words, a deadlock occurs when two threads block each other forever because they are waiting for ..read more
Visit website
How to Use the Java Platform Environment
Developer.com » Java
by Developer.com Staff
2w ago
When programmers create a Java program, it runs in an environment that includes your operating system, the Java Virtual Machine (JVM), and Java class libraries. Developers can configure different aspects of their program’s development environment from the command line. This programming tutorial takes you through the different ways in which you can use and configure the Java environment on your system. Read: Top Java Online Training Courses and Bundles Java Configuration Utilities Below, we will examine several of the configuration utilities available in the Java Platform Environment. Java Com ..read more
Visit website
Best Practices for Multithreading in Java
Developer.com » Java
by Joydip Kanjilal
2w ago
Multithreading is the ability of an operating system to have numerous threads in memory at the same point in time with the illusion that all these threads are executing concurrently. While multithreading provides several benefits, you must be aware of the best practices to avoid any issues related to thread synchronization, starvation, concurrency, and so forth. In this programming tutorial, we will examine the best practices for multithreading in Java. Before getting started, you may want to read our tutorial: Introduction to Multithreading in Java. Multithreading Best Practices in Java Soft ..read more
Visit website
What is Java Thread Interference?
Developer.com » Java
by Joydip Kanjilal
2w ago
In Java (and other programming languages), threads share the same address space, and, therefore, have access to all variables, objects, methods, and global scope of the application or program. When more than one thread attempts to access the same piece of data at the same point of time, (i.e., concurrently), there can be several problems, such as thread synchronization issues, thread interference issues, and so forth. Fortunately, there are a few techniques that Java developers can use to mitigate these issues. In this programming tutorial, we will discuss thread interference in Java with rele ..read more
Visit website
Working with Strings and Special Characters in Java
Developer.com » Java
by Robert Gravelle
2w ago
Whether you create a String using the constructor or as a string literal, the most important thing to remember is that the entire sequence must be enclosed in quotation marks. This can pose a problem if the string itself must contain quotation marks. That is where character escaping comes in. Besides quotation marks, you can insert several special characters into a string in the same way. We will be looking at character escaping, escape characters, and special characters in this Java programming tutorial. Read: Top Java Online Training Courses and Bundles Character Escaping in Java In Java, a ..read more
Visit website

Follow Developer.com » Java on Feedspot

Continue with Google
OR