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

Thorogood Core Java Interview Questions
Questions Answers Views Company eMail

what are the oops concept in java explain with real time examples

24 192493

Post New Thorogood Core Java Interview Questions


Thorogood Core Java Interview Questions
    Thorogood Core Java Interview Questions (1)


Un-Answered Questions

How do I find the ip address of a mac address in linux?

466


In c#, what will happen if you do not explicitly provide a constructor for a class?

518


What are the aggregate functions supported by salesforce soql?

209


3.2 Consider the following class: public class Point { protected int x, y; public Point(int xx, int yy) { x = xx; y = yy; } public Point() { this(0, 0); } public int getx() { return x; } public int gety() { return y; } public String toString() { return "("+x+", "+y+")"; } } Say you wanted to define a rectangle class that stored its top left corner and its height and width as fields. 3.2.1 Why would it be wrong to make Rectangle inherit from Point (where in fact it would inherit the x and y coordinates for its top left corner and you could just add the height and width as additional fields)? (1) 8 Now consider the following skeleton of the Rectangle class: public class Rectangle { private Point topLeft; private int height, width; public Rectangle(Point tl, int h, int w) { topLeft = tl; height = h; width = w; } public Rectangle() { this(new Point(), 0, 0); } // methods come here } 3.2.2 Explain the no-argument constructor of the Rectangle class given above. 3.2.3 Write methods for the Rectangle class to do the following: • a toString() method that returns a string of the format "top left = (x, y); height = h; width = w " where x, y, h and w are the appropriate integer values. • an above() method that tests whether one rectangle is completely above another (i.e. all y values of the one rectangle are greater than all y values of the other). For example, with the following declarations Rectangle r1 = new Rectangle(); Rectangle r2 = new Rectangle(new Point(2,2), 1, 4); the expression r2.above(r1) should give true, and r2.above (r2) should give false. (You can assume that the height of a rectangle is never negative.) (2) (5)

2425


Tell me the advantages of baseband modulation over broadband?

458






How do I remove duplicates in two columns?

506


How to configuring routes in angular js?

443


What is full copy sandbox?

202


What is the default maximum dynamic partition that can be created by a mapper reducer? How can you change it?

461


What are the approaches of extracting a query string with regular expressions?

406


Mention the way of highlighting as well as putting a cursor to use in a cobol program.

624


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1758


What does f4 do in word?

357


Why MUX JB's are using only Temperature Element in Fundation field bus?

1745


Describe the information processes in living organisms?

1861