Sep 29

core java interview questions part 5

 21)      What  is ASCII Code?

ASCII stands for American Standard code for Information Interchange. ASCII character range is 0 to 255. We can’t add more characters to the ASCII Character set. ASCII character set supports only English. That is the reason, if we see C language we can write c language only in English we can’t write in other languages because it uses ASCII code. Continue reading

Sep 19

Core Java Interview questions-part1

1) what are static blocks or static initalizers in Java ?

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. Continue reading