The Java equivalent to a VB shared constructor is a 'static initializer block'.
Public Shared field As Integer
Shared Sub New()
field = 1
public static int field;
field = 1;
Use VB to Java Converter to convert from VB to Java.
VB.NET and Java Equivalents
Copyright © 1997 – 2018 Tangible Software Solutions Inc.