what is the structure of atomic nuclei and how do complex systems derive their properties from their individual constituents?
2392A man starts his journey from the North Pole and travels a distance of 100 kms. in one direction. Thereafter, he turns towards east and travels another 100 kms. then he turns northward and goes for another 100 kmz. How far he is now from the North Pole ? (a) 0 km (b) 100 km (c) 200 km (d) 400 km
3 8300A photoelectric cell converts (a) Light energy to thermal energy (b) Light energy to sound energy (c) Light energy to electrical energy (d) Electrical energy to light energy
3 35144Which of the following gases makes limewater milky white ? (a) Ammonia (b) CO (c) CO2 (d) Chlorine
2 7497Which of the following districts grows most of coffee ? (a) Coorg (b) Mysore (c) Hubli (d) Bellary
7 12982?CAS? stands for (a) Conditional Audio System (b) Conditional Access System (c) Complete Audio System (d) Complete Access System
3 9508Post New RRB Interview Questions
How is visibility of methods changed in ruby?
In Australia what is minimum qualifications if the ship has two Main Engines each engine is 2400HP and each engine has its own shaft and propeller. Rgds_____Robert
How do you copy a formula in excel but keep one cell constant?
Which are the different factors that affect the reliability of a network?
Why do you want to join John Deere? What do you hope to gain?
What is idref in spring?
What's the difference between scripting and coding?
Can angularjs connect to database?
How primary key is implemented in Oracle?
I am in .Net development for past 3.5 years and want to enter in to automated testing and learn QTP. For this I need some good tutorial for beginners. I will be really greatful if any one has and they can send it to me on this address- ruchidureja@gmail.com
Question 5 [15] Consider the following classes, illustrating the Strategy design pattern: import java.awt.*; abstract class Text { protected TextApplet tA; protected Text(TextApplet tApplet) { tA = tApplet; } abstract public void draw(Graphics g); } class PlainText extends Text { protected PlainText(TextApplet tApplet) { super(tApplet); } public void draw(Graphics g) { g.setColor(tA.getColor()); g.setFont(new Font("Sans-serif", Font.PLAIN, 12)); g.drawString(tA.getText(), 20, 20); } } class CodeText extends Text { protected CodeText(TextApplet tApplet) { super(tApplet); } public void draw(Graphics g) { g.setColor(tA.getColor()); g.setFont(new Font("Monospaced", Font.PLAIN, 12)); g.drawString(tA.getText(), 20, 20); } } public class TextApplet extends java.applet.Applet { protected Text text; protected String textVal; protected Color color; public String getText() { return textVal; } public Color getColor() { return color; } public void init() { textVal = getParameter("text"); String textStyle = getParameter("style"); String textColor = getParameter("color"); if (textStyle == "code") text = new CodeText(this); else text = new PlainText(this); if (textColor == "red") color = Color.RED; else if (textColor == "blue") color = Color.BLUE; else color = Color.BLACK; } public void paint(Graphics g) { text.draw(g); 10 } } The Text class is more complicated than it should be (there is too much coupling between the Text and TextApplet classes). By getting rid of the reference to a TextApplet object in the Text class and setting the colour in the paint() method, one could turn the Text class into an interface and simplify the strategy classes considerably. 5.1 Rewrite the Text and PlainText classes to do what is described above. (6) 5.2 Explain the consequent changes that are necessary to the TextApplet class. (4) 5.3 Write an additional strategy class called FancyText (to go with your simplified strategy classes) to allow fancy text to be displayed for the value "fancy" provided for the style parameter. It should use the font Font ("Serif", Font.ITALIC, 12). (3) 5.4 Explain what changes are necessary to the TextApplet class for this. (2)
What are the benefits of robo-advisors in investment management?
Enlist the contents of Container.
What are the 4 versions of java?
What is Click Tag?