Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / saran

it is possible to create java program without userdefined class.

public enum AAA {

AAA;

public static void main(final String[] args) {
System.out.println("H");
}

}

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is constructor in java ?

1253


When should we create our own custom exception classes?

1054


Explain about static nested classes in java?

1110


If you do not want your class to be inherited by any other class. What would you do?

1068


write a program that list all permutations of ABCDEF in which A appears before B?

2515


What are scalar data types?

1124


What is the function of http?

1066


How can we break singleton in java?

1014


why are wait(), notify() and notifyall() methods defined in the object class? : Java thread

1046


What is scope & storage allocation of global and extern variables? Explain with an example

1089


Which container method is used to cause a container to be laid out and redisplayed in java programming?

1170


What is the use of isempty in java?

1074


Can you pass functions in java?

1073


Give some features of interface?

1132


Is it possible to use Semaphore/ Mutex in an Interrupt Handler?

1140