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

How do you create a first line indent?

994


What is difference between java and java ee?

1021


How to invoke external process in java.

1065


How do I know if java is installed?

1075


What is the advantage of preparedstatement over statement?

1098


Explain about interrupt() method of thread class ?

1116


give an example for encapsulation?

1039


Write a java program to print fibonacci series?

942


What is flag in python?

1024


Can we use synchronized block for primitives?

1064


What are the types of casting?

1055


Is java 11 paid version?

977


Why object class is super class for every class in java?

1018


Can we split string with in java?

997


What is local class in java?

1081