can we write a program with out a class in core java?

Answer Posted / venkat kanneganti

yes,an empty source file is compiled with out error,but it
will throw Runtime Exception when jvm will not find Main()
method.

Is This Answer Correct ?    18 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is parsing a string?

593


What is the size of string?

566


What is thread count in java?

549


Why do you canvas?

614


Why is an interface be able to extend more than one interface but a class can’t extend more than one class?

710






Can we create more than one object singleton class?

585


How do you make an arraylist empty in java?

484


How do you get the length of a string in java?

525


How many inner classes can a class have?

584


Explain super keyword in java.

587


What are the important features of Java 10 release?

513


What is mean by collections in java?

570


Explain about procedural programming language or structured programming language and its features?

550


What is a string token?

538


What is the Difference between Final Class && Abstract Class?

619