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

Write a program to solve producer consumer problem in java?

1062


What is a variable simple definition?

1081


Can we use different return types for methods when overridden?

1061


What is data member in java?

1143


What's the default access specifier for variables and methods of a class?

1164


What do you mean by platform independence? What is an interface?

1072


Are private methods final?

945


Which is better ascii or unicode?

1038


What is a blocking method in Java?

1311


Explain different forms of polymorphism?

1192


What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?

1236


What is a values collection view ?

1144


How do you make a thread in java?

1147


What is constructor chaining and how is it achieved in java?

1234


Explain about data types?

1146