SIB IIB Main Method and Constructor | Core Java Interview Question | SoftwareTestingbyMKT

preview_player
Показать описание
To join my upcoming courses/classes please fill below form

Join this channel to get access to the perks:

Like, share and subscribe to the channel.
API Testing Playlist

Core Java Playlist

Selenium Playlist

Manual testing Playlist

Watch my other videos too,
Inheritance in Java video

Single level inheritance video

Multi Level Inheritance in Java video

Hierarchical Level Inheritance in Java video

Hybrid Level Inheritance in Java video

Method Overloading in Java video

This calling statement in Java or this() video

Constructor Overloading in Java video

Constructor in Java video

Static and Non Static Variables in Java video

How to Create an Object in Java & Handing non Static method video

Multiple static methods inside a single Class | How to deal it?

Methods in Java | What exactly is public static void main(String[] args)

Types of Variables in Java | Local,Global & Final Variables

Variable and Datatype in Java

Easy way to run a program in Java | First program in Java

Class and Object in java

50 Keywords in Java

Tokens in Java

How Java internally works?| Compilation & Interpretation

Introduction to Java | History of Java |Features of Java
Derived model in software development life cycle video link

Prototype model in software development life cycle video link

Spiral model in software development life cycle video link

Verification and Validation in software development life cycle video

Hybrid model in software development life cycle video video

Waterfall model in software development video link

Software development life cycle video link

What is manual testing, it's advantages and disadvantages video link

What is Software testing video link

I work in the IT industry as a Senior Software QA Engineer in Bangalore, India and I have worked on mobile applications, web applications, and API testing.
The main reason behind this channel is to educate people about software testing so that it will helpful for them to choose the right career and also to prepare for their interviews.

Adding my blog link

Adding my personal mail Id:

Adding my Quora profile link here:

Adding my Twitter account here,
or
Facebook Page:

Join us on Telegram today,
SoftwaretestingbyMKT
For the latest update on software jobs and to discuss each and everything about Software Testing also get an opportunity to get on an audio/video call with me directly to you.
I make videos on daily basics and also help student all over the world for FREE. If my videos are helpful in anyway help "SoftwaretestingbyMKT" reach billions by supporting
OR
Рекомендации по теме
Комментарии
Автор

The execution will be Static initialization block, main method, Instance initialization block, constructor..

shwetakumari
Автор

The order of execution will be as follows:
1. Static Initialization Block (executed once when the class is loaded).
2. Main Method (entry point of the program).
3. Instance Initialization Block (executed each time an instance is created).
4. Constructor (executed when an instance is created).

gsdrall
Автор

1.Static Initialisation block
2.main method
3.instance initialisation block
4.constructor bock

pramodshelke
Автор

here is the answer sir...
1.static block (it will execute before the main method)
2.main method (if there is no static block then main method will be executed first)
3.Instance block (it will only be executed after the object creation of the class..suppose if object is not created then., , the instance block will not be executed)
4.constructor(will be executed after the corresponding object creation of the class....it can be executed N number of times...depends on how many time we create the object...for eg..if we create the object for that particular constructor 10 times it will be executed 10 times..and so on)..


correct me if I am wrong...will be happy to learn

taslimtassu
Автор

Static initialization block executed first and then main method
Then constructor and then instance initialization block

Rutu
Автор

Static block
Main method
Instance initialization block
Contructor

shubhamkulkarni
Автор

1.Static installation block (is always executed first in statement )
2. main method
3.IIB (IIB run every time a new instance is created)
4 . Constructor



For ex : here if we create object 2 time then also IIB and constructor will get executed again.

)

kailasarbat
Автор

1static block
2.main method
3.constructor
4.instatnce

AnilGupta-iofe
Автор

Prg always executed in main method, we can call by different method of obj to other method

akshaykhapote
Автор

1st static block second main method.third Constructor finally instance method

pooja
Автор

1.Sib
2.main methode
3.Iib
4.constructor

amrutapatil
Автор

Static block, main method instance block constructor. The order may chnge

sayantanbhattacharya
Автор

Depends on which java version you are using....

subhajitchakraborty
Автор

SIB is the priority to execute first in any class.

shwetakumari
Автор

Sib, main method, Iib and constructor

snd
Автор

The order of execution will be:
SIB > main method > IIB > Constructor

AmitKumar-pqrz
Автор

Static
Instance
Constructor
Main method

ajaymalviya
welcome to shbcf.ru