Question
What does the following paint( ) method draw?

a. Public void paint(Graphics g) {

b. g.drawString("question #6",10,0);
}

c. The string "question #6", with its top-left corner at 10,0

d. A little squiggle coming down from the top of the component, a little way in from the left edge




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 What are the different port states?
  • Q What is sequencefileinputformat?
  • Q Explain what is media.seekto and media.getduration function in opengap media api?
  • Q Every man in a village of 100 married couples has cheated on his wife. Every wife in the village instantly knows when a man other than her husband has cheated, but does not know when her own husband has. The village has a law that does not allow for adultery. Any wife who can prove that her husband is unfaithful must kill him that very day. The women of the village would never disobey this law. One day, the queen of the village visits and announces that at least one husband has been unfaithful. What happens
  • Q Diff B/W Scalar and Vector DataTypes?
  • Q Mention what are views in Hive?
  • Q Where in the human body are the alveoli?
  • Q How much time required to apply bundle patch on half rack exadata database machine with rolling option?
  • Q Why bookkeeping is so important for any business?
  • Q 'X' liters of petrol can be filled in an automobiles tank. What part of full tank was removed, if 'Y' liters was removed when the tank was full?
  • Q The foreign intelligence agency of India, RAW (Research and Analysis Wing) was established in: