Question
Class Test
{
public static void main (String [ ] args)
{
Test obj = new Test ( );
obj.start ( );
}
void start ( )
{
String stra=”do”;
String strb = method (stra);
System.out.print(“:” + stra + strb);
}
String method (String stra)
{
stra=stra+”good”;
System.out.print (stra);
return “good”;
}
}
a.
dogood : dogoodgood
b.
dogood : gooddogood
c.
dogood : dodogood
d.
dogood : dogood
Posted under UGC NET computer science question paper Web Technologies
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What is the output of the following JAVA program?
Similar Questions
Discover Related MCQs
Q. What is the full form of WWW?
View solution
Q. What is the full form of Email?
View solution
Q. What is the full form of FTP?
View solution
Q. What is the full form of LAN?
View solution
Q. ISP is an acronym of
View solution
Q. Which of the following layers of the TCP/IP references model routes packets?
View solution
Q. Networks of computers connected over greater distances are called
View solution
Q. Which of the following is not a layer in the TCP/IP reference model?
View solution
Q. How many bits are their in an IP address?
View solution
Q. Rules contained in programs on router computers that determine the best path on which to send packets are called
View solution
Q. What is the top-level domain in www.yahoo.com/sports
View solution
Q. Which of the following protocols is used to send and receive emails?
View solution
Q. Which of the following protocols is used to transfer files over a network?
View solution
Q. Which of the following is a transport layer protocol in the TCP/IP protocol suite?
View solution
Q. Which of the following is used to retrieve mails from remote mail server?
View solution
Q. Which of the following application layer protocols uses UDP as its underlying transport protocol?
View solution
Q. A web server is a
View solution
Q. Which of the following statements is used by the serve to listen for a connection request from a client?
View solution
Q. Which of the following is used by a client to establish a socket connection with the server?
View solution
Q. What happens when a serve uses a port to blind an object, but the port is not available?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Web Technologies? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!