What are static blocks and static methods?

Junior Java

Answer

Static block executes once when class loads.
Static methods belong to class and can be accessed without object creation.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice