Question
Where g is a graphics instance what will the following code draw on the screen.
g.fillArc(45,90,50,50,90,180);

a) 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.

b) 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.

c) 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.

d) 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.




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 When to user Truncate Delete in SQL?
  • Q How to remove parts of an image in gimp?
  • Q What is the salutation part of the letter?
  • Q What is a uml package?
  • Q Explain the types of linked lists?
  • Q Describe page layouts of moss?
  • Q Who was appointed Director of ISRO's Space Application Centre, Ahmadabad?
  • Q Tell about hierarchy of the forces.
  • Q Explain Java Coding Standards for variables ?
  • Q Differentiate between a compiler and an interpreter
  • Q What method is used to know the status of Checkbox(i.e it is checked or unchecked)?