Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6941545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:53:58+00:00 2026-05-27T12:53:58+00:00

I am unable to understand the following text… Does it mean that <clinit> is

  • 0

I am unable to understand the following text… Does it mean that <clinit> is for empty constructors? Why is important to have two different versions?

https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-2.html

2.9. Special Methods

At the level of the Java virtual machine, every constructor (§2.12) appears as an instance initialization method that has the
special name <init>. This name is supplied by a compiler. Because the
name <init> is not a valid identifier, it cannot be used directly in a
program written in the Java programming language. Instance
initialization methods may be invoked only within the Java virtual
machine by the invokespecial instruction, and they may be invoked only
on uninitialized class instances. An instance initialization method
takes on the access permissions (§2.7.4) of the constructor from which
it was derived.

A class or interface has at most one class or interface initialization method and is initialized (§2.17.4) by invoking that
method. The initialization method of a class or interface is static
and takes no arguments. It has the special name <clinit>. This name is
supplied by a compiler. Because the name <clinit> is not a valid
identifier, it cannot be used directly in a program written in the
Java programming language. Class and interface initialization methods
are invoked implicitly by the Java virtual machine; they are never
invoked directly from any Java virtual machine inw2struction, but are
invoked only indirectly as part of the class initialization process.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:53:59+00:00Added an answer on May 27, 2026 at 12:53 pm

    <init> is the (or one of the) constructor(s) for the instance, and non-static field initialization.

    <clinit> are the static initialization blocks for the class, and static field initialization.

    class X {
    
       static Log log = LogFactory.getLog(); // <clinit>
    
       private int x = 1;   // <init>
    
       X(){
          // <init>
       }
    
       static {
          // <clinit>
       }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some questions about basic CSS that I was unable to understand or
Myself and some teammates have been unable to understand why the following snippet of
I'm unable to understand the following codes $(this).animate({rotate3Di: degrees}, options) . Here rotate3Di is
I don't really understand how to do transactions in DBAL I have the following
I have the following javascript code: <script type=text/javascript> var x = 10; window.onload =
Static variable has file scope. Say I have two following files: file1.h file1.cpp file2.h
Iam unable to understand following: $this->db->select('1', FALSE); Can some one elaborate it in simple
Hi I am unable to understand the output of the following function. ListPointPlot3D[Table[Sin[x^2 +
Hello I have read following php statement from a blog but I am unable
I found the following code but unable to understand what should I pass through

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.