|
Skip Navigation Links
Home
>
Complaint Questions
Home
Hindi GK
UPSC GK
State GK
South India
Tamil
Telugu
Kannada
Malayalam
West India
Marathi
Gujarati
MP GK
Chhattisgarh
North India
RPSC
Haryana
UP GK
Uttarakhand
Himachal
Delhi
East India
Bihar
Jharkhand
Educational Quiz
College Quiz
A-O Level
Medical
Medical-PG
Engineering
GATE
MBA-BBA
Aptitude
IT Eng.
International
USA
UK
MCQ GK
Exam Quiz
old Exams
जीवनी
नौकरी
विशेष
search
Reported Question / Answer
Q.) What will be the output of the program?
1)
Will print in this order: x = 1 y = 1 x = 2 y = 2 x = 3 y = 3 x = 4 y = 4 x = 5 y = 5... but the output will be produced by both threads running simultaneously.
2)
Compilation error.
3)
Will print in this order x = 1 y = 2 x = 3 y = 4 x = 5 y = 6 x = 7 y = 8...
4)
Will print in this order: x = 1 y = 1 x = 2 y = 2 x = 3 y = 3 x = 4 y = 4 x = 5 y = 5... but the output will be produced by first one thread then the other. This is guaranteed by the synchronised code.
5)
NULL
Answer :
4
Thank you for reporting wrong Question / Answer / Options
We look forward to your suggestions and feedback.
Message / Correct Answer / Suggestion
Human Verification : Answer 2 + 3 = ?
Reading Corner ( Ctrl + Mouse Click)
Who used Nikola Tesla’s alternating current system at World’s Columbian Exposition at Chicago in 1893?
What is the area of Iowa?
For how much did William Randolph Hearst sell New York Journal?
When was Dwight Eisenhower first sworn in as President of USA?
What did John Harvey Kellogg develop as breakfast food?
Which operation of CIA recruited news organizations and journalists?
From which university did John Nash receive his doctorate in mathematics?
When was Clyde William Tombaugh born?
When was Jamestown founded?
Which is the highest point in Tennessee?
Abraham Lincoln was shot on 14 April 186What was the significance of that day?
What was Marilyn Monroe’s character in Niagara?
Which is Utah’s state bird?
When was Frank Kellogg born?
Whose portrait appears on $500 note?
Which is Utah’s state tree?
Who was President when John Qunicy Adams was Secretary of State?
When was Grover Cleveland first sworn in as President of USA?
When did Charles Lindbergh undertake his historic solo New York – Paris flight?
Where did Nikola Tesla discover terrestrial stationary waves?
Which magazine did Lydia Maria Child found and publish?
Which is the capital of Rhode Island?
When was Robert Lee born?
Who was California’s governor in 1966-1974?
Who was the Democratic Party’s candidate for Vice President for USA Presidential Election 2012?
Which state is to the west of Vermont?
Which state is to the west of Georgia?
When was Millard Fillmore born?
Where was Benjamin Franklin born?
Where was James Pritchard born?
Who sold his rights to half of New Jersey to the Quakers in 1674?
Which of the following applies to Gerald Ford?
Who was Frank Sinatra’s co-star in The Manchurian Candidate?
Where did Nathaniel Hawthorne work as a measurer?
Where was Sinclair Lewis born?
Who is the school teacher in The Legend of Sleepy Hollow?
Whom did Dwight Eisenhower appoint as the head of French North Africa?
Who led the Committee of Safety that deposed Liliuokalani?
Which country is to the north of Maine?
Where was Norbert Wiener born?
Which is the capital of Pennsylvania?
In which film did Shirley Temple sing On the Good Ship Lollilop?
Which of the following Benjamin Franklin did not invent?
Where did Frances Cleveland Preston die?
Which is the highest point in Puerto Rico?
Which state is to the north of Arkansas?
Which Jackie Collins novel is the longest?
When was Irving Berlin born?
When did Maria Goeppert Mayer win Nobel Prize for Physics?
When did Jacqueline Kennedy visit India?
When was Robert Lee defeated at Gettysburg?
Where was Glenn Theodore Seaborg born?
What is the motto of Delaware?
When did USA purchase Alaska from Russia?
Who was Kansas’ governor in 1933-1937?
When was Isaac Asimov born?
What is John F. Kennedy’s mother’s maiden surname?
Which lake is to the east of Wisconsin?
When did Emancipation Proclamation come into effect?
When did Jesse Owens die?
Which of the following cities is in Nevada?
How much time did Jesse Owens take to win 100m race in Berlin Olympics 1936?
What was the name of University of Denver at its founding?
When was Harry Truman first elected to USA Senate?
Which of the following books was published by Theodore Roosevelt in 1885?
Which was Truman Capote’s first novel?
Where did Robert Kennedy die?
Which state is to the south of Oklahoma?
Who designed Iowa’s flag?
Whose portrait appears on $50 note?
Managed Services By:
www.upscgk.com
Home
About us
Services
Terms
Team
Sitemap
Contact