Question
If g is a graphics instance what will the following code draw on the screen?.
g.fillArc(45,90,50,50,90,180);
1) An arc bounded by a box of height 45, width 90 with a centre point of 50,50, starting at an angle of 90 degrees traversing through 180 degrees counter clockwise.
2) An arc bounded by a box of height 50, width 50, with a centre point of 45,90 starting at an angle of 90 degrees traversing through 180 degrees clockwise.
3) An arc bounded by a box of height 50, width 50, with a top left at coordinates of 45, 90, starting at 90 degrees and traversing through 180 degrees counter clockwise.
4) An arc starting at 45 degrees, traversing through 90 degrees clockwise bounded by a box of height 50, width 50 with a centre point of 90, 180.

Answers

3) An arc bounded by a box of height 50, width 50, with a top left at coordinates of 45, 90, starting at 90 degrees and traversing through 180 degrees counter clockwise.

fillArc(int x, int y, int width, int height, int startDegrees, int arcDegrees) The fillArc function draws an arc in a box with a top left at coordinates X & Y. If the ArcDegrees is a positive number the arc is drawn counter clockwise.   Your Comment




More Software,Java Questions..
What is the inputsplit in map reduce software?

Can variables be used in Java without initialization?

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

What is software configuration management?

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)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

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

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

What is object cloning in Java?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?



Search
Can you Answer!!
  • Q Ajara Cup is associated with which sport
  • Q What are conversion routines for units and currencies in the update rule?
  • Q List the new features of the performance and reliability monitor tool?
  • Q Who has taken charge as the first ever Director General of Operations at Air Headquarters in New Delhi ?
  • Q List three types of shells commonly available in a UNIX environment
  • Q 2 trees are there.one grows at 3/5 of the other.In 4 years total growth of the trees is 8 ft.what growth will smaller tree will have in 2 years.
  • Q Write the synonym for To Dispel
  • Q Kolattam and Chholiya are dance form of?
  • Q What famous religious hymn by Augustus Montague Toplady
  • Q Between the iterative routine sum-iter and recursive routine sum-rec, which is more efficient and why?
  • Q It is true that a periodic re-evaluation of the treatment program and of the patients performance shall mean: (A)Once every 30 days (B)Once every 45 days (C)Once every 90 days