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

Answer Posted / juned

yes,It is possible by using enum(which is a predefine class)

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a super method?

534


What is a hashmap used for?

652


How do you access command-line arguments within the code?

573


What is boolean law?

522


What are the six ways to use this keyword?

613






What is the difference between hashmap and hashtable? What is an interface?

513


What is variable and its types?

547


What is difference between filereader and bufferedreader?

537


What is a substring of a string?

567


What is the difference between double and float variables in java?

638


What is a conditional equation?

563


In Java list the methods that can be overridden?

575


Why Java doesn’t support multiple inheritance?

641


What about instanceof operator in java?

603


What are constructors in java?

574