Question for connoisseurs of Java and Visual Studio

4

Recently I'm starting to work with Java; I really have more experience with Visual Studio. So, since the environments are different, I'd like to know what the Java equivalences are:

  • Desktop applications
    With Visual Studio I use WinForms or WPF / With Java?

  • Console applications
    With Visual Studio I use Console Application / With Java?

  • Web Services
    With Visual Studio use WebServices ASP or WCF / With Java?

  • Web Applications
    With Visual Studio I use ASP.Net or MVC / With Java?

  • Operations towards databases
    With Visual Studio I use ADO.NET / EF / With Java?

  • IDE
    With Visual Studio, with Java there are several Which do you recommend?

asked by Erick 09.08.2016 в 23:18
source

5 answers

4
  

Desktop applications With Visual Studio I use WinForms or WPF / With   Java?

Java swing. Jpanel or Jframe depending on what you do

  

Console applications With Visual Studio I use Console Application /   With Java?

when doing code without interface the applications run in console you can see it in the console of the IDE that you use, As simple as a hello world

  

Web Services With Visual Studio use WebServices ASP or WCF / With Java?

There are several useful tools the most common is JSP, java server faces, and Frameworks such as Spring or Play

  

Web Applications With Visual Studio I use ASP.Net or MVC / With Java?

The architecture you make it, Spring works in MVC but it is part of your programming paradigm

  

Operations to databases With Visual Studio I use ADO.NET / EF /   With Java?

The most common is Hibernate and it helps you to persist data, even if ODBC exists

For .NEt IDE I always use Visual Studio, with Java there are several Which do you recommend? What I learned was with NetBeans, but in many education channels they use Eclipse. in both you can develop applications of other languages including applications for mobile devices

    
answered by 09.08.2016 / 23:36
source
4

I have changed the order of the questions to facilitate reading and understanding.

  

Console applications With Visual Studio use Console Application / With Java?

Default Java applications run in a console, independent of the type of application that is created. For your applications that would be purely console, run them with the command java and you can use System.out.print / System.out.println to print outgoing messages. In addition to this, there are frameworks such as clamshell-cli and Jansi that facilitate the development and visualization of your console applications made in Java.

  

Desktop applications With Visual Studio I use WinForms or WPF / With Java?

There are several frameworks in Java to create GUI desktop applications. The most common is Swing, but it is not the only one. Currently, Java 8 drives more development with JavaFX and Swing is maintained for compatibility. There are no visual components to drag in Java, this will depend on the IDE and plugins that have the IDE to support Swing, JavaFX or others. However, for JavaFX you can create your GUI using Scene Builder . Which of these frameworks to choose? It will depend on you. Personally, I recommend JavaFX over Swing (out of the know and popular rejection).

From the answer to the previous question, there is also the command javaw , which does not use a console to show the output of the program. It is useful to run your GUI applications.

  

Web Applications With Visual Studio I use ASP.Net or MVC / With Java?

Web applications in Java usually follow the Java EE (Java Enterprise Edition) standard. These applications run on an application server that works under this standard or a relevant group of them. Mainly, JSP is used for the view and Servlet is used as controllers (following the MVC pattern). Likewise, there are frameworks built on these technologies such as JSF, Spring MVC, Struts 2, etc. that facilitate the development of web applications.

  

Web Services With Visual Studio use WebServices ASP or WCF / With Java?

Any web application can provide web services. There are two main standards for providing services: JAX-WS for web services on SOAP and JAX-RS for REST-style web services. These standards are implemented by specific frameworks to each, being metro and Jersey implementations of each standard respectively. On this, there are frameworks such as Spring WS and Spring REST that provide another way to implement this type of services.

In Java, there is no direct simile to WCF. There are products like an ESB that can perform what you request and much more. At best, if you want something less than an ESB and with more power than WCF, then you have Apache Camel .

  

Operations towards databases With Visual Studio I use ADO.NET / EF / With Java?

Database-based operations with Java are performed using JDBC. All database connection frameworks in Java are written as a layer superior to JDBC.

A Java equivalent for EF would be JPA. This is a standard of communication towards the database based on ORM frameworks. Among the most popular implementations of JPA are Hibernate and EclipseLink . If you do not need to work with an ORM framework, you can use other options such as MyBatis or jOOq , among others.

  

For .NEt IDE I always use Visual Studio, with Java there are several Which do you recommend?

You should use the IDE that best suits your needs and tastes. The most popular are currently IntelliJ IDEA (has a community version that is free, the official is paid), Eclipse and NetBeans , and then others like BlueJ that do not offer as many features as those mentioned above. I have worked with all three, and I feel comfortable with both Idea and Eclipse.

    
answered by 10.08.2016 в 01:07
2

To develop Java there are several options NetBeans , Intellij IDEA , Eclipse , etc ...

  
  • For WinForms the equivalent can be Swing to build GUI.
  •   
  • Console Application simply creates your Console type application.
  •   
  • Application. WebServices ASP or WCF the Java version would be Java Server Pages .
  •   
  • Visual Studio uses ADO.NET Java with the framework Hibernate (there is more) and ODBC .
  •   

Each IDE has its positive and negative points, I have personally used NetBeans, Intellij IDEA and Eclipse, now (since 2 years ago) I mainly use NetBeans.

    
answered by 10.08.2016 в 00:38
1

well for java work one of the most used IDE is netBeans, I personally like it a lot, it is also IntellijIdea that facilitates the issue, it is up to you to try and decide which is the best according to your tastes.

By the way, I think NetBeans finds more documentation on the web.

    
answered by 09.08.2016 в 23:30
1

For web application development check out Java Server Faces (JSF) .

It is common to use this framework together with other UI components, such as:

I'm adding this Mkyong tutorial that has a quick start > for fairly complete JSF

    
answered by 09.08.2016 в 23:49