• Menu
  • Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

JavaBeat

Java Tutorial Blog

  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)
  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)

Talha Malik

How to Use Optional.ofNullable() Method in Java

August 31, 2023 //  by Talha Malik

Optional.ofNullable() Method in Java is used for the implementation of both null and not null values. The optional.empty() method appears for the null values

Category: Java

How to Implement a Java Callback Function

August 31, 2023 //  by Talha Malik

To implement a callback function in Java, the approach involves creating a function as a first-class entity, which is then invoked from a second class.

Category: Java

How to Handle Covariant Return Type in Java

August 31, 2023 //  by Talha Malik

The covariant return type in Java deals with non-primitive data types like arrays, lists, and classes. It makes the code look cleaner and more usable.

Category: Java

How to Get Current Date and Time using Java Instant now() Method

August 31, 2023 //  by Talha Malik

In Java, the “Instant.now()” method is used to get the current date and time. It uses the UTC clock to get the current instant.

Category: Java

How to Employ Static Import in Java

August 31, 2023 //  by Talha Malik

Static import in Java has access to all static methods/fields. It works in such a way that all static data is imported without calling each class name separately.

Category: Java

How to Get Year from Date in Java

August 31, 2023 //  by Talha Malik

To get a year from the date, the calendar class, Local Date class, String.split() method, and SimpleDateFormat class are used in Java

Category: Java

How to Implement Tail Recursion in Java

August 31, 2023 //  by Talha Malik

Tail recursion occurs when a recursive call is made and ends afterward and has nothing to perform after the completion of this recursive call.

Category: Java

How to Implement ActionListener in Java

August 31, 2023 //  by Talha Malik

ActionListener belongs to the “java.util.event” package. To handle user requests efficiently the action listener interface of Java has to be implemented.

Category: Java

  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Interim pages omitted …
  • Go to page 13
  • Go to Next Page »

Primary Sidebar

Follow Us

  • Facebook
  • Pinterest

FEATURED TUTORIALS

How to Use Java BlockingQueue

What is new in Java 6.0 Collections API?

The Java 6.0 Compiler API

Introductiion to Jakarta Struts

What’s new in Struts 2.0? – Struts 2.0 Framework

JavaBeat

Copyright © by JavaBeat · All rights reserved
Privacy Policy | Contact