When will you define method static
When will you define method static Answer : Whenever you want your method to be…
Read MoreWhen will you define method static Answer : Whenever you want your method to be…
Read MoreCan class be declared as static Answer: No, Only public, abstract & final are permitted…
Read MoreWhat are static methods Answer: Methods declared static has below restriction:
Read MoreWhat is static block Answer: It’s known as static initializer and it will be executed…
Read MoreWhen static variable loaded compile or runtime When static block loads Answer: Static variable loaded…
Read MoreWhat is class variables Answer: When you define any variable static that is called class…
Read MoreWhat is difference between static and non-static variables Answer:
Read MoreWhat do you understand by casting in Java What are types of casting Answer :…
Read MoreWhat is explicit casting Answer : Though java automatic type conversions are helpful, they could…
Read MoreWhat is up-casting Answer : Up-casting in java is inheritance relationship between parent and child…
Read More