How to print a statement without using semicolan in java

Answer Posted / sadikhasan palsaniya

for (int i=0;i<1;System.out.println("Sadikhasan
Palsaniya"),i++);

Is This Answer Correct ?    22 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to print nodes of a Binary tree?

1752


What are the basic control structures?

492


What are data structures in java?

525


Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.

2275


What loop means?

553






What is Java Package and which package is imported by default?

589


What will be the initial value of an object reference which is defined as an instance variable?

629


Difference between ‘>>’ and ‘>>>’ operators in java?

637


Explain about static nested classes in java?

602


How many java versions are there?

556


What is the difference between instanceof and isinstance?

557


Which access specifier can be used with class ?

528


how to prepare for IT Officers Interview in Banks

1498


How can we access some class in another class in java?

539


What is the purpose of return statement?

621