Question
What is the output of the following program?
public class Question {
public static void main(String args[]) {
String s1 = "abc";
String s2 = "def";
String s3 = s1.concat(s2.toUpperCase( ) );
System.out.println(s1+s2+s3);
}
}

a. abcdefabcdef

b. abcabcDEFDEF

c. abcdefabcDEF

d. None of the above




More Java Questions..
Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

What is static synchronized method in JDBC API? Give an example?

Should we override finalize method

What is object cloning in Java?

What is difference between notify() and notfiyAll()

Describe java's security model.

Is there is any error if you have multiple main methods in the same class?

What is the name of the method used to schedule a thread for execution?

1) init();

2) start();

3) run();

4) resume();

5) sleep();

Can I import the same package/class twice? Will the JVM load the package twice at runtime?

What releases of Java technology are currently available? What do they contain?

What is asymmetric clustering in WebSphere?

What is pass by value and pass by reference?

What are the actions that can occur when a thread enters blocked state

How do I launch the browser using WebDriver

What is the use of Void(0)?

How does the native language C or C++ understand data types in JAVA



Search
Can you Answer!!
  • Q How does rules tracer help us?
  • Q Who was the Hindu saint to have as disciple both Hindus and Muslims?
  • Q Who has won the maximum French Open Men's singles in the open era?
  • Q Mention the tolerance of fish in aquatic pollution.
  • Q Which Kerala leader is called 'Delhi Gandhi'?
  • Q What are string html wrappers?
  • Q Expand GFP and DHEA.
  • Q If not, do you need help selecting the best CMS for your needs?
  • Q Soda water was invented by
  • Q The earth revolves round the sun in its orbit by approximately ___________
  • Q What is extends ?