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 are the kinds of polymorphism?

1125


How to optimize the javac output?

1090


Is static variable stored in heap?

1051


what is the use of bean managed and container managed with example?

2013


Do I need java for windows 10?

1091


what is a green thread? : Java thread

1076


What are the important features of Java 10 release?

1033


Is double bigger than float?

1040


Explain about oops concepts.

1173


Why there is no call by reference in java?

974


Explain restrictions for using anonymous inner classes?

1142


What is a Transient Object?

1132


What is an example of character?

1203


Can you add null to a list java?

1104


How is java hashmap implemented?

1076