can we write a program with out a class in core java?
Answer Posted / navneet raushan
Yes, with the help of static block we can write a program.
static block executed first always
| Is This Answer Correct ? | 12 Yes | 5 No |
Post New Answer View All Answers
What is functional interface in javatpoint?
Can you add null to a list java?
Can a top level class be private or protected?
Explain about anonymous inner classes ?
What is matcher in java?
Explain thread in java?
What do you mean by light weight and heavy weight components?
I want to print “hello” even before main is executed. How will you acheive that?
What will be the default values of all the elements of an array defined as an instance variable?
What is instance example?
Can you give few examples of final classes defined in java api?
Which collection is sorted in java?
What are different types of control structures?
What is bufferedreader in java?
What are the ways in which a thread can enter the waiting state?