About 117,000 results
Open links in new tab
  1. What is the point of "final class" in Java? - Stack Overflow

    Good reasons to prohibit inheritance in Java? If Java is object oriented, and you declare a class final, doesn't it stop the idea of class having the characteristics of objects? In some sense yes. …

  2. java - Point Class Coordinates - Stack Overflow

    You will need to declare and implement the following methods: Two constructors: a. no-argument constructor that sets the point coordinates to (0,0), and b. a constructor that takes x and y …

  3. What is the meaning of "this" in Java? - Stack Overflow

    In the above example code this.x/this.y refers to current class that is Point class x and y variables where (double x,double y) are double values passed from different class to assign values to …

  4. java - An example of the use of the Point class? - Stack Overflow

    Sep 23, 2013 · I'm trying to use Point(double x, double y), getX(), getY() to create a point and return it with toString(). I can't find an example of how to do this anywhere. public class Point { …

  5. java - store X and Y coordinates - Stack Overflow

    Jul 30, 2012 · Hi im new to this site and need help with a program im working on. the problem im having is that i cant seem to store string and two integers (as the coordinates). i have looked …

  6. How can I use pointers in Java? - Stack Overflow

    I know Java doesn't have pointers, but I heard that Java programs can be created with pointers and that this can be done by the few who are experts in Java. Is it true?

  7. java - Different names of JSON property during serialization and ...

    Is it possible: to have one field in class, but different names for it during serialization/deserialization in Jackson library? For example, I have class "Coordiantes". class …

  8. What is the point of using abstract methods? - Stack Overflow

    Dec 6, 2011 · What's the point of using "abstract methods"? An abstract class cannot be instantiated, but what about the abstract methods? Are they just here to say "you have to …

  9. java - Creating a point object from a user input - Stack Overflow

    You can't just cast int to Point like that. If your Point class has a constructor Point(int x, int y), then you can read both coordinates from the Scanner and create Point from them:

  10. http - How to add login credentials to URL - Stack Overflow

    May 25, 2018 · So no point in trying HTTP basic authentication. This specific login page seems to expect a POST request to /login.php with USR, PAS parameters. The answer will probably …