#java

[ follow ]
Java
Developer Tech News
1 day ago
Java

New Relic: Developers swiftly embracing newer Java releases

Java remains popular due to scalability and portability. Newer versions like Java 21 and 17 see accelerated adoption for their advancements in stability, security, and performance. [ more ]
Ife Sunmola
6 days ago
Java

Unions types in Java | Ife Sunmola

Unions in Java allow for defining types that can hold various but predetermined types, offering an alternative to traditional object-oriented approaches. [ more ]
Alvinalexander
2 weeks ago
Java

Java: How to get the current date (and time) in Java 8, 11, 14, 17, etc.

To get the current date in Java, use LocalDate.now() with Java 8 and newer versions. [ more ]
Alvinalexander
4 weeks ago
Java

The Java 8 lambda Thread and Runnable syntax and examples

Java 8 introduced lambda syntax for Thread and Runnable
Lambda syntax simplifies Thread and Runnable creation in Java [ more ]
Alvinalexander
1 month ago
Java

Java stack and heap definitions

Java stack holds local variables and partial results, while Java heap is where memory for class instances and arrays is allocated. [ more ]
Alvinalexander
1 month ago
Java

Java: How to find the longest String in an array of Strings

Finding the longest string in a Java String array can be achieved by iterating through the array and comparing string lengths.
Knowing the length of the longest string in a Java String array can be useful for tasks like setting prototype values. [ more ]
moreJava
Medium
1 week ago
Scala

Exploring Play Framework: Java, Scala, and Web Development

Scala complements Java in Play Framework for robust and scalable web applications. [ more ]
Alvinalexander
1 week ago
Scala

How to convert HTML to plain text with Jsoup (Scala and Java)

Jsoup in Scala/Java can convert HTML to plain text, offering various methods for extraction. [ more ]
Alvinalexander
3 weeks ago
Scala

Java Jar file: How to read a file from a Jar file

Java applications can read text files from their own JAR files using InputStream and BufferedReader.
Using getResourceAsStream method without a path before the filename reads files from the current directory within a JAR. [ more ]
Alvinalexander
3 weeks ago
Scala

A Java JOptionPane showMessageDialog with scrolling text

Using a JTextArea inside a JScrollPane to display a long text in a JOptionPane showMessageDialog.
Creating a scrolling text area in a JOptionPane showMessageDialog to handle large text messages effectively. [ more ]
Alvinalexander
4 weeks ago
Scala

Java JFrame example: How to display a JFrame

Construct and display a JFrame using SwingUtilities.invokeLater method.
Proper way to display a JFrame is ensuring it's on the Event Dispatch Thread (EDT). [ more ]
Alvinalexander
1 month ago
Scala

Java: JOptionPane showMessageDialog examples (part 1)

JOptionPane showMessageDialog can display simple text messages.
Using a JFrame reference centers the dialog on the JFrame, while using null centers it on the user's screen. [ more ]
InfoQ
4 days ago
JavaScript

Java News Roundup: WildFly 32, JEPs Proposed to Target for JDK 23, Hibernate 6.5, JobRunr 7.1

JEP 476, Module Import Declarations (Preview), JEP 474, ZGC: Generational Mode by Default, and JEP 467, Markdown Documentation Comments, are proposed for JDK 23. [ more ]
kotlin
CodeProject
1 week ago
Software development

Smart Android Template for Data Performance

Android Studio is user-friendly for beginners, using Java and Kotlin for basic Android features and data storage. [ more ]
Alvinalexander
2 weeks ago
Scala

Scala/Java/Kotlin: How to replace left and right brackets in a String (replaceFirst, replaceAll)

Use \ before left bracket for string replacement in Scala/Java/Kotlin. [ more ]
Medium
2 months ago
Scala

Destructuring Assignment- Kotlin vs Scala

Kotlin and Scala both offer destructuring assignment to extract values from data structures.
Java 21 also introduces deconstructing fields of a Java record. [ more ]
medium.com
3 months ago
Scala

Comparing Scala, Java, Kotlin, and Go: A Comprehensive Overview

1. JVM languages like Scala, Java, and Kotlin share some underlying mechanics and support OOP principles.
2. Scala integrates both object-oriented and functional programming paradigms, while Java and Kotlin have a similar syntax but with additional features like null safety and extension functions. [ more ]
Medium
3 months ago
Scala

Structured Concurrency on the JVM

Structured concurrency is a programming paradigm that aims to provide a more organized and predictable way to manage concurrent execution in software programs.
Java 19 has incorporated an API for structured concurrency, while Kotlin has long provided this feature through its Coroutines and suspending functions. [ more ]
morekotlin
Alvinalexander
4 weeks ago
Scala

Creating a Thread (and Runnable) in Scala

Scala threads are created similarly to Java threads with slight syntax differences.
Java Runnable can be used in Scala to create threads by implementing the run method. [ more ]
Medium
2 months ago
Scala

Threads, ThreadPools and Executors-Multi Thread Processing In Java

Concurrency is a complex and common problem in software development.
Java provides higher-level abstractions like the ExecutorService interface to solve concurrency issues. [ more ]
Medium
2 months ago
Scala

Threads, ThreadPools and Executors-Multi Thread Processing In Java

Concurrency is a common yet complex issue for developers.
Higher-level abstractions in languages simplify solving concurrency problems. [ more ]
Alvinalexander
1 month ago
Data science

How to set a Java JFrame title

Two ways to set JFrame title: during construction or using setTitle method.
setTitle method can change title of an existing JFrame. [ more ]
InfoWorld
3 months ago
Data science

Machine learning for Java developers: Machine learning data pipelines

This article focuses on deploying machine learning models in a production environment using Java.
The article assumes basic knowledge of machine learning models and algorithms. [ more ]
Medium
1 month ago
Scala

A quick overview of access modifiers in Scala

Scala access modifiers resemble Java's but have additional levels.
Scala defaults to public access, unlike Java's package private default. [ more ]
Medium
3 months ago
Data science

Beyond Python and R: Exploring Diverse Programming Languages in Data Science

Python and R have been the dominant programming languages in data science, but there is a growing trend of using alternative languages.
Alternative languages like Julia, Scala, Java, and SQL are gaining popularity for their unique strengths in data science tasks. [ more ]
Alvinalexander
1 month ago
Java

Java SimpleDateFormat example: How to convert a Date to a formatted String

The SimpleDateFormat class in Java allows easy conversion between Date and String formats.
Using SimpleDateFormat with Java is demonstrated with a custom date formatting approach. [ more ]
Alvinalexander
1 month ago
Scala

How to populate a static List (ArrayList, LinkedList) in Java (syntax)

Use List.of() in Java 9 for initializing a static List efficiently.
Static List initialization pre-Java 9 can be efficiently done using Arrays.asList() with ArrayList. [ more ]
Oracle
1 month ago
Java

Oracle Announces Free Java SE Technical Support for Academic Institutions in Oracle Academy

Oracle supports Java in education by offering free resources and enabling curriculum development.
Oracle Academy membership provides access to various benefits for educators and students. [ more ]
Alvinalexander
1 month ago
Scala

Java: How to round a double (or float) to two decimal places? (formatting output)

Use DecimalFormat or String.format to round double and float values to two decimal places.
Remember precision loss with float values due to fewer bits than double. [ more ]
Alvinalexander
1 month ago
Scala

Java: How to append text to a file with the FileWriter class

Create a FileWriter instance with the 'append' flag set to true to append text to the end of a file in Java.
Use BufferedWriter along with FileWriter to easily append data to the end of a text file in Java. [ more ]
Theregister
1 month ago
Scala

Catch Java 22, available from Oracle for a limited time

JDK 22 features released
Java LTS support and release cycle
Growth in Java development noted [ more ]
Oracle
1 month ago
Java

Java users on macOS 14 running on Apple silicon systems should consider delaying the macOS 14.4 update

macOS 14.4 update changes behavior for memory access in protected regions
Bug related to memory access issue can be tracked on bugs.java.com (bugID JDK-8327860) [ more ]
Developer Tech News
1 month ago
Web development

Java remains backbone of enterprise applications

Java remains the stable backbone of enterprise applications
Cloud migration drives Java's continued prevalence [ more ]
ITPro
3 months ago
Web development

Meta's Code Llama AI coding tool just got a big performance boost

Generative AI coding tool now supports multiple programming languages.
The tool enables users to automatically generate code snippets in Python, C++, Java, PHP, and more. [ more ]
CodeProject
3 months ago
Web development

Implementation of Producer-Consumer problem in C++ and Python

Implementing producer and consumer problem in C++ and Python
Asking for guidance on implementing in C# and Java [ more ]
Entrepreneur
3 months ago
Web development

This Java Programming Bundle Is $24.99 Through January 14th Only | Entrepreneur

Java Programming Certification Bundle on sale for $24.99 (reg. $420) through January 14th only
Bundle includes seven courses and nearly 90 hours of content on the fundamentals of coding with Java. [ more ]
Medium
2 months ago
Scala

Programming in Scala [Chapter 29]-Combining Scala and Java

Mapping Scala features to Java constructs for seamless integration.
Scala and Java compatibility extends to annotations system. [ more ]
Alvinalexander
2 months ago
Scala

A Java MySQL SELECT example

Demonstrates Java code for issuing a SQL SELECT command in MySQL
Explains creating an example MySQL database table [ more ]
Medium
2 months ago
Scala

Registering classpath for Scala ScriptEngine at runtime

ScriptEngine interface executes scripts in a scripting language
Custom classpath can be set in Scala 2.12 using a new Scala ScriptEngine with ScriptEngineFactory. [ more ]
ZDNET
2 months ago
Privacy professionals

3 million smart toothbrushes were just used in a DDoS attack. Really

Three million smart toothbrushes were hijacked by hackers to launch a DDoS attack, causing millions of euros in damages.
The compromised toothbrushes were running Java, a popular language for IoT devices, and flooded a Swiss website with bogus traffic to knock services offline. [ more ]
App Developer Magazine
2 months ago
DevOps

JBoss EAP 8 released from Red Hat| App Developer Magazine

Red Hat has announced the general availability of Red Hat JBoss Enterprise Application Platform (JBoss EAP) 8.
JBoss EAP 8 delivers security enhancements, improved cloud workflow tools, and compatibility with Jakarta EE 10. [ more ]
Medium
2 months ago
Scala

https://github.com/geirolz/fly4s

Flyway is a popular Java library for handling database migrations, but it has some stylistic problems in terms of OOP paradigm.
Fly4s is a lightweight wrapper for Flyway that aims to provide pureness, resource handling, and type safety by using typelevel libraries. [ more ]
Alvinalexander
2 months ago
Scala

Java 'int' array examples (declaring, initializing, populating)

There are several ways to create an int array in Java.
You can declare an int array with an initial size and populate it later, or declare it as you populate its elements. [ more ]
InfoQ
3 months ago
Software development

The One Billion Row Challenge Shows That Java Can Process a One Billion Rows File in Two Seconds

Gunnar Morling launched The One Billion Row Challenge (1BRC) to find Java code that processes one billion rows in the fastest time.
Only SDK features running on any Java distribution can be used, excluding external libraries or data stores from the solution. [ more ]
Vuejobs
3 months ago
Software development

Full Stack Engineer (Java, Vue.js) at Modus Create

Modus Create is hiring Full Stack Engineers with experience in Node and Vue.js.
The position requires strong experience in Java, Spring Framework, JavaScript, React or VueJS, Relational Databases, and AWS Cloud. [ more ]
The New Stack
3 months ago
Software development

AWS Gifts Java, Rust Developers with Useful Tools

AWS introduces tools for Java developers to upgrade their systems.
AWS delivers tools for Rust developers to build apps for the AWS cloud. [ more ]
Alvinalexander
4 months ago
Software development

A Java array length example

To determine the length of a Java array, access the 'length' attribute of the array.
The 'length' attribute provides the number of elements in the Java array. [ more ]
TNW | Future-Of-Work
4 months ago
Software development

7 most in-demand programming languages for 2024

Python is a versatile and in-demand programming language, particularly useful for AI and automation tasks.
Java remains a solid and steady performer and is widely used in web development, cloud computing, and enterprise tools. [ more ]
InfoQ
5 months ago
Software development

Javet 3.0.2 Released: Bridging Java and JavaScript with Enhanced Features

Javet 3.0.2 has been released, featuring the latest versions of Node.js and V8.
The platform now supports multiple CPU architectures, expanding its compatibility. [ more ]
DevOps.com
3 months ago
Artificial intelligence

Diffblue Integrates Generative AI-Based Testing Platform With GitLab - DevOps.com

Diffblue has integrated its automated unit testing platform for Java with GitLab's DevSecOps platform to streamline regression testing and improve application quality and security.
Diffblue's AI-based platform can update tests 250 times faster than manual testing, reducing friction and bottlenecks in DevSecOps teams. [ more ]
Medium
3 months ago
Scala

VSCode ile Lokal'de Scala Projesi Gelistirme

Install VSCode, Java, and sbt on your computer
Configure VSCode settings and install the necessary extensions
Create a new Scala project in VSCode and run your Scala code [ more ]
Amazon Web Services
3 months ago
Scala

Looking beyond code coverage with Amazon CodeWhisperer | Amazon Web Services

Code coverage is a code quality metric that often focuses on meeting a coverage threshold rather than improving code quality.
Using tools like Amazon CodeWhisperer can help generate test cases, including boundary conditions, to improve code quality and productivity. [ more ]
Medium
4 months ago
Scala

Exploring Java, Scala, and Kotlin: A Comprehensive Comparison

Introduction:
In the vast realm of programming languages, Java, Scala, and Kotlin stand out as versatile choices for developers.
InfoQ
4 months ago
Angular

JHipster 8 Upgrades to Spring Boot 3, Hibernate 6.2, Node 18 LTS, Vue 3 and Angular 16

JHipster version 8.0 has been released with new features including Hashicorp Consul as the default service discovery mechanism and enabled Cross Origin Resource Sharing (CORS)
Support for JDK 20 and JDK 21 has been added, along with upgrades to Hibernate, Maven, Gradle, and various JavaScript dependencies [ more ]
Alvinalexander
5 months ago
Books

Great 2023 holiday programming gift book (for Java/Kotlin/OOP developers)

The book 'Learn Functional Programming The Fast Way!' has been reduced to $20 for the holidays.
It is written for Java, Kotlin, and object-oriented programming (OOP) developers. [ more ]
Medium
5 months ago
Scala

17 Scala Case Studies in one (free) e-book

Scalac Case Study Book provides insights into the use of Scala in various industries.
Scalac offers team extension services to help companies scale up their projects.
Scalac is a team of experts in Scala, Java, Go, and Rust. [ more ]
Techie Delight
5 months ago
Scala

Guava Int.tryParse() method in Java | Techie Delight

The Ints.tryParse() method is a convenient way to parse strings as integers in Java.
It returns null if the parsing is not successful, instead of throwing an exception like Integer.parseInt().
Ints.tryParse() allows for specifying a default value if the parsing fails, using Guava's Optional class. [ more ]
InfoQ
5 months ago
Software development

InfoQ Java Trends Report - November 2023

Java Virtual Threads in JDK 21
Commitment to evolve Java language
Increasing community interest in microservice frameworks [ more ]
[ Load more ]