|
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)
Which is the highest point in Montana?
Which state is to the west of Virginia?
When did Lynette Fromme try to kill Gerald Ford?
Which magazine published Henry David Thoreau’s poem Sympathy?
Where was William Taft born?
Where are the headquarters of FBI?
Where did Warren Gamaliel Harding die?
After his father’s death in 1743 where did George Washington go to live with his half-brother Lawrence?
What was the number of electoral votes won by candidates leaving aside the four disputed states?
When was The Clash of Civilizations and the Remaking of World Order published?
For which film did Marilyn Monroe get Golden Globe Award for Best Actress in a Comedy?
How long was Amelia Earhart’s solo flight from Newfoundland to Ireland in 1932?
Which is Oklahoma’s state bird?
Where did Richard Buckminster Fuller die?
When was the first edition of Ancient Near Eastern Texts Relating to the Old Testament published?
Which state is to the north of West Virginia?
Where did Nikola Tesla die?
When was Wallis Warfield born?
Which is the capital of South Dakota?
Who was the Democratic Party’s candidate for Vice President for USA Presidential Election 2008?
Which ocean is to the east of Massachusetts?
Where did Benjamin Franklin represent USA in 1776-1785?
Who presented the Union Jack to Kamehameha I in 1793?
Who sold New York World to Joseph Pulitzer?
When was William McKinley born?
When was the Battle of Kings Mountain?
When was Frances Clara Folsom born?
When was Walden published?
When was Jerome David Salinger born?
Where did Margaret Mitchell die?
Where did Isaac Asimov die?
When did the Supreme Court of USA announce its decision in the case of Dred Scott?
When did Herbert Hoover die?
Which is the largest lake in Maine?
What was Yogi Berra’s real name?
What is the area of Iowa?
Where did Ellsworth Huntington die?
Which is Minnesota’s state flower?
What is West Virginia’s nickname?
Which is the state flower of Kentucky?
Which war did the newspapers of Joseph Pulitzer and William Randolph Hearst espouse?
What is the motto of Georgia?
When did Eugene Paul Wigner become a citizen of USA?
What is the area of Arkansas?
What did John F. Kennedy say in France?
Who advised Thomas Paine to go to America?
Which state is to the north of South Dakota?
Which allotrope of carbon is named after Richard Buckminster Fuller?
Which school did Anne Spencer Morrow attend?
Whom did Millard Fillmore send to Japan for opening trade with it?
Which state is to the south of Minnesota?
Which is the largest lake in New Hampshire?
Which state is to the east of Mississippi?
When was Lauren Bacall born?
What is the area of Nebraska?
Which college did William Henry Harrison attend?
From which University did James Polk graduate?
When did Frank Lloyd Wright die?
What was Judy Garland’s role in The Wizard of Oz?
Which is the capital of Oregon?
When was Thomas Paine born?
1Which country has the highest number of Jews?
Which is the highest point in Kentucky?
When was The Valley of Decision published?
When did Flannery O’Connor publish A Good Man Is Hard to Find, and Other Stories?
Which country is to the south of California?
Which state is to the south of Vermont?
What is the motto of West Virginia?
Which state is to the north of Kansas?
Which parallel was set as boundary between USA and Canada on 20/10/1818?
Managed Services By:
www.upscgk.com
Home
About us
Services
Terms
Team
Sitemap
Contact