Yes.
Java can write desktop applications, web applications, distributed systems and embedded systems applications, etc. There are many things that Java can do, covering all aspects of the programming field.
Desktop applications: Simply put, these are programs whose main functions run locally, such as word, excel, and other applications that run locally are desktop applications.
Enterprise applications: Simply put, this is a large-scale application, generally used by a large number of people, the amount of data is large, the stability of the system, security, scalability, and can be assembled and so on have relatively high requirements. This is one of the most widely used areas of Java at present, and it is almost the only one. Including a variety of industry applications, enterprise informationization, including e-government, etc., the field involves: office automation OA, customer relationship management CRM, human resources HR, enterprise resource planning ERP, knowledge management KM, supply chain management SCM, enterprise equipment management system EAM, product life cycle management PLM, service-oriented architecture SOA, business intelligence BI, project management PM, Marketing Management, Process Management WorkFlow, Financial Management ...... and almost any application you can think of.
Embedded devices and consumer electronics: including wireless handheld devices, smart cards, communication terminals, medical equipment, information appliances (such as digital TV, set-top boxes, refrigerators), automotive electronic equipment, etc. are popular in recent years, Java applications, especially cell phones on the Java applications and Java games, is even more popularized.
In addition to these applications, there are many functions to perform mathematical operations, display graphical interfaces, perform network operations, perform database operations, perform file operations, and so on.