can we create a object in static block
class A
{
static {
A a=new A();
}
}
Answer Posted / anjani kumar jha
Yes We can do..........................there is no problem
static
{
FileSize fz=new FileSize();
System.out.println(fz);
}
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
am searching for the job based on java, swing, currently working small company. they are not giving any salary slip, offer letter. so if i try outside for MNC's they start with previous company details. what should i do..? please help me to get job and make my career.
What are the advantages of the event-delegation model over the event-inheritance model?
What is content pane in swing?
How to create image slideshow in java swing?
What is event in java swing?
What is the use of java swing?
What is the difference between swing and awt?
What is swing api?
How to print in java swing application?
What is java awt and swing?
What is the use of swing in java?
What is the purpose of transferhandler class?
What is a swing application?
Which method is used by the applet to recognize the height and width?
Why does JComponent have add() and remove() methods but Component does not?