XtraStudy Header LOGO Home
Java Interview Questions
Question 21
Q.21 What is a Class Variable ?

These are variables declared with in a class, outside any method, with the static keyword.
⚔ DISCUSS

Question 22
Q.22 What is Singleton class ?

Singleton class control object creation, limiting the number to one but allowing the flexibility to create more objects if the situation changes.
⚔ DISCUSS

Question 23
Q.23 Is Empty .java file name a valid source file name ?

Yes, save your java file by .java only, compile it by javac .java and run by java yourclassname.
⚔ DISCUSS

Question 24
Q.24 Is delete, next, main, exit or null keyword in java ?

No.
⚔ DISCUSS

Question 25
Q.25 If I don't provide any arguments on the command line, then the String array of Main method will be empty or null ?

It is empty. But not null.
⚔ DISCUSS

Categories

Comments (0)


 XtraStudy ADVT Skill India