Computer Science, asked by himanshupassey26, 11 months ago

Java question...

int a; if(a>=0) if(a==0) system.out.print("first string"); else system.out.print("second string"); system.out.print("third string"); what gets printed when a=1?

Answers

Answered by sakshisingh27
2

Answer:

String string1 = "foo";

String string2 = "FOO";

if (string1.equals(string2))

{

// this line will not print because the

// java string equals method returns false:

System.out.println("The two strings are the same.")

}

Answered by sexyboy123456
4

Answer:

this is the answer for your question OK follow me please Mark My answer as brainlest answer inbox me please

Attachments:
Similar questions