Coding Interview ⛥
1.5K subscribers
115 photos
215 files
30 links
This channel contains the free resources and solution of coding problems which are usually asked in the interviews.
Download Telegram
The_Software_Developer's_Career_Handbook_Early.epub
531.5 KB
The Software Developer's Career Handbook
Michael Lopp, 2023
Data_Science_and_Algorithms_in_Systems_Proceedings.pdf
98.9 MB
Data Science and Algorithms in Systems
Radek Silhavy,, 2023
Building_Android_Projects_with_Kotlin_Use_Android.epub
5.8 MB
Building Android Projects with Kotlin
Pankaj Kumar, 2023
Top 50 OOPS Interview Preparation Course 💻
👍1
what are static blocks and static initalizers in Java ?
answer :
Static blocks or static initializers are used to initalize static fields in java. we declare static blocks when we
want to intialize static fields in our class. Static blocks gets executed exactly once when the class is loaded
. Static blocks are executed even before the constructors are executed.
1
What's the base class in Java from which all classes are derived
Anonymous Quiz
53%
java.lang.object
20%
Java.util.object
8%
java.lang.base
20%
Both A and C
How to call one constructor from the other constructor ?
answer :
With in the same class if we want to call one constructor from other we use this() method. Based on the
number of parameters we pass appropriate this() method is called.
Restrictions for using this method :
1) this must be the first statement in the constructor
2)we cannot use two this() methods in the constructor
👍1