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


Please Help Members By Posting Answers For Below Questions

Is null keyword in java?

533


State one difference between a template class and class template.

628


Explain java coding standards for interfaces?

636


What is the purpose of the main method?

545


What does yield method of the thread class do?

583






What is bytecode in java ?

611


What do you understand by weak reference?

562


how does the run() method in runnable work? : Java thread

517


What is annotation in java?

578


What is a pattern what is an anti pattern?

512


Explain the difference between string, stringbuffer and stringbuilder in java?

565


What is unmodifiable collection in java?

514


What is polymorphism and what are the types of it?

513


What is computer compiler?

538


What is nullpointerexception?

561