my java

public class Test1 { static { System.out.println("Static Block"); } public static void main (String[] args) { System.out.println("Main method"); } public static void staticMethod() { System.out.println("static method"); } }

1 Response

What will be the output

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.