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

How do you calculate square roots?

1166


Why there are some null interface in java? What does it mean?

1127


Why do we override tostring method in java?

963


How to make a read-only class in java?

1165


What are assembly attributes?

1008


What are predefined functions?

1133


What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?

1124


What is protected in java?

1001


Will the compiler creates a default constructor if I have a parameterized constructor in the class?

1114


Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?

1134


What is one third plus one third as a fraction?

938


When to use runnable interface vs thread class in java?

981


Is java developer a good career?

1024


what is server side caching?

2174


What is the difference between length and length() method in java?

1120