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 / subrat

ya we can do it by using enum,but it is also a predefined class.

public subrat
{
subrat;
public static void main(String k[])
{
System.out.println("SUBRAT");
}
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When do we use hashset over treeset?

990


What is static synchronization?

1038


What is the static variable?

1056


What is the longest unicode character?

1097


Can we declare a class as abstract without having any abstract method?

954


How many bits is a char?

926


Can we use static class instead of singleton?

1001


How can constructor chaining be done using this keyword?

1213


What are the topics in advance java?

914


How you can force the garbage collection?

933


What is the static keyword?

1033


Difference between operator overloading and function overloading

1015


Explain the difference between comparator and comparable in java?

887


How list contains works in java?

928


What is an example of declaration?

950