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...

How to print a statement without using semicolan in java

Answer Posted / amit sharma

public static void main(String[] args) {

if(System.out.printf("hi",null) == null)
{
System.out.println("byee");
}
}


In printf(String format, Object args), We also need to
specify argument.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is garbage collection? What is the process that is responsible for doing that in java?

1063


What is method reference in java?

1059


What is use of static in java?

1097


What is strings in java?

993


What is a native method in java programming?

1006


What is java in simple terms?

952


How do you remove duplicates in java?

959


can I implement my own start() method? : Java thread

936


What is the loop in java?

1054


What is the do while loop syntax?

984


What is default size of arraylist in java?

1071


What is the difference between inner class and nested class?

1012


What data type is true or false?

996


What is the structure of java?

970


Explain method overloading?

967