Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Company Name Starts with ...
#  A  B  C  D  E   F  G  H  I  J   K  L  M  N  O   P  Q  R  S  T   U  V  W  X  Y  Z

RRB Interview Questions
Questions Answers Views Company eMail

Is your generator is automated or manual if so do you know the circuits?

7 36073

How to analyze the design patterns ?

1 7091

what is Loader?

4 15839

what is the structure of atomic nuclei and how do complex systems derive their properties from their individual constituents?

2392

What is the name of the first type of building used in Christian Churches?

3919

How would you attach pictures in column headers of List View Control?

2100

Railway Recruitment Board Examination, Kolkata February 2005 Question Paper

3 25843

Railway Recruitment Board Examination, January 2005 Question Paper

71 243926

General Knowledge & Current Affairs Questions and Answers - Set 1

55 625239

what is Neurosphere attachment ?

2212

A 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 8300

A 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 35144

Which of the following gases makes limewater milky white ? (a) Ammonia (b) CO (c) CO2 (d) Chlorine

2 7497

Which 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 9508

Post New RRB Interview Questions


RRB Interview Questions


Un-Answered Questions

How is visibility of methods changed in ruby?

5


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

2485


How do you copy a formula in excel but keep one cell constant?

580


Which are the different factors that affect the reliability of a network?

357


Why do you want to join John Deere? What do you hope to gain?

1319


What is idref in spring?

443


What's the difference between scripting and coding?

1188


Can angularjs connect to database?

828


How primary key is implemented in Oracle?

2453


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

1987


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)

2282


What are the benefits of robo-advisors in investment management?

74


Enlist the contents of Container.

1058


What are the 4 versions of java?

1169


What is Click Tag?

529