Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

Constructors Part 4 | Static Constructors vs Non Static Constructor | Mr. Bangar Raju

109.7K views
•
September 30, 2017
by
Naresh i Technologies
YouTube video player
Constructors Part 4 | Static Constructors vs Non Static Constructor | Mr. Bangar Raju

TL;DR

Static constructors are implicitly called and cannot have parameters, while non-static constructors must be explicitly called and can be overloaded.

Transcript

welcome to Nerdist technologies and bangarraju and this is the part for video of our constructors so in the part 1 part 2 part 3 our just demonstrating about what is the constructor types of constructors and what is the use of constructors and in this video I wanted to demonstrate about the difference between static constructors and a non static co... Read More

Key Insights

  • 🤙 Static constructors are implicitly called, while non-static constructors must be explicitly called.
  • 🏑 Static constructors initialize static fields, while non-static constructors initialize non-static fields.
  • 🏛️ Static constructors execute immediately once the execution of a class starts and are the first block of code to run under a class.
  • 🏛️ Non-static constructors execute only after creating an instance of a class and can be overloaded.
  • 🚱 Static constructors cannot have parameters, while non-static constructors can be parameterized.
  • #️⃣ Static constructors execute only once in the lifecycle of a class, while non-static constructors execute a number of times based on the number of instances created.
  • ♿ Static members can be directly accessed from a static block, while non-static members must be accessed using the class instance.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: What is the difference between a static constructor and a non-static constructor?

A static constructor is implicitly called and initializes static fields, while a non-static constructor must be explicitly called and initializes non-static fields.

Q: Can static constructors have parameters?

No, static constructors cannot have parameters because they are implicitly called and values cannot be passed to them.

Q: Can non-static constructors be overloaded?

Yes, non-static constructors can be overloaded, meaning you can define multiple constructors with different parameters.

Q: When do static constructors execute?

Static constructors execute immediately once the execution of a class starts and are the first block of code to run under a class.

Q: How many times do static constructors execute in the lifecycle of a class?

Static constructors execute only one time in the lifecycle of a class, regardless of the number of instances created.

Q: How many times do non-static constructors execute in the lifecycle of a class?

Non-static constructors execute zero times if no instances are created, or as many times as the number of instances created.

Q: Can static members be directly accessed from a static block?

Yes, static members can be directly accessed from a static block, but non-static members cannot. Non-static members must be accessed using the class instance.

Q: When are implicit constructors defined?

Implicit non-static constructors are defined in every class, except static classes, if they are not defined explicitly. Static constructors are only defined if the class contains static fields.

Key Insights:

  • Static constructors are implicitly called, while non-static constructors must be explicitly called.
  • Static constructors initialize static fields, while non-static constructors initialize non-static fields.
  • Static constructors execute immediately once the execution of a class starts and are the first block of code to run under a class.
  • Non-static constructors execute only after creating an instance of a class and can be overloaded.
  • Static constructors cannot have parameters, while non-static constructors can be parameterized.
  • Static constructors execute only once in the lifecycle of a class, while non-static constructors execute a number of times based on the number of instances created.
  • Static members can be directly accessed from a static block, while non-static members must be accessed using the class instance.
  • Implicit constructors are defined in every class except static classes, and static constructors are only defined if the class contains static fields.

Summary & Key Takeaways

  • Constructors are responsible for initializing fields or variables of a class.

  • Static constructors are implicitly called and initialized static fields, while non-static constructors must be explicitly called and initialize non-static fields.

  • Static constructors execute immediately once the execution of a class starts and are the first block of code to run under a class, while non-static constructors execute only after creating an instance of the class.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from Naresh i Technologies 📚

Data Science Capstone Project | Naresh IT thumbnail
Data Science Capstone Project | Naresh IT
Naresh i Technologies
Differences between Variable Instance and Reference | C#.NET Tutorial | Mr. Bangar Raju thumbnail
Differences between Variable Instance and Reference | C#.NET Tutorial | Mr. Bangar Raju
Naresh i Technologies
Java Multithreading Enhancement | by Mr. Hari Krishna thumbnail
Java Multithreading Enhancement | by Mr. Hari Krishna
Naresh i Technologies
Master Bootstrap: Session 4 Tutorial by Mr. Sudhakar Sharma | NareshIT thumbnail
Master Bootstrap: Session 4 Tutorial by Mr. Sudhakar Sharma | NareshIT
Naresh i Technologies
Introduction of SQL Server | SQL Server Tutorial thumbnail
Introduction of SQL Server | SQL Server Tutorial
Naresh i Technologies
SQL Server Management Studio - SSMS Part-2 | SQL Server Tutorial thumbnail
SQL Server Management Studio - SSMS Part-2 | SQL Server Tutorial
Naresh i Technologies

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.