A default value is the one that has been considered the most appropriate on several
systems, methods, programs. Obviously it is the parameter which works better, otherwise it wouldn't be set as a standard value. To set something "by default" is the same as to choose a value, a configuration more convenient for that purpose.
How do you download c plus plus on vista?
You cannot download a programming language, but you can download compilers. Check the attached link.
Why polygon method called as graphical method?
The polygon method is referred to as a graphical method because it visually represents data and relationships through geometric shapes, typically polygons. In this approach, data points are plotted on a graph, and lines or curves connect them to form a polygon, allowing for easier interpretation of trends, patterns, and correlations. This visual representation helps in analyzing complex data sets intuitively, making it accessible for decision-making and comparisons.
Is java needed to surf the web?
Java is not a necessity but there are some websites that will not work properly without it installed and activated. Java needs to be updated often or errors on certain pages will occur. Gaming sites require that it be installed and activated or the games will not operate.
Addition of two numbers without using operators in java?
I don't think this can be done. Why do you want to do it without operators, anyway? It is fairly simple to use them. - Of course, you could write a method that adds two numbers, but your method will internally still have to use operators.
-----------------------------------------
Reply by lordstriker24@yahoo.com
import java.math.BigInteger;
public class MultiplyTest {
public static void main(String[] args) {
BigInteger bigInt1 = new BigInteger("5");
BigInteger bigInt2 = new BigInteger("8");
System.out.println(bigInt1.add(bigInt2));
}
}
The computer desktop encyclopedia says
In object technology, to create an object of a specific class
(1) A single copy of a running program. Multiple instances of a program mean that the program has been loaded into memory several times. (2) In object technology, a member of a class; for example, "Lassie" is an instance of the class "dog." When an instance is created, the initial values of its instance variables are assigned.
Why does Java support multilevel inheritance?
Because it is one of the most important and widely used inheritance concepts in Java. In multi level inheritance a class directly inherits features from one class and indirectly inherits features form other classes that are in the inheritance hierarchy.
Java will take some time to learn. If you spend several hours a day you can learn the basics in a few weeks and do some "hello word" type programs.
If you're looking for more immediate results from a programming language you can look at Python or PHP.
If you're talking about "traditional" AI programming languages like LISP and Prolog, the essential difference boils down to the language's ruling metaphor.
Most standard programming languages operate on a principle of sequential and/or branching instruction execution.
OTOH, the LISt Processing language (LIST) encourages its programmers to view everything (all solutions to programming problems) in the form of one or many lists.
Prolog is perhaps the furthest evolution to date away from the standard, sequential-instruction programming model: in Prolog, the programmer does not explicitly spell out the sequence of operations (a.k.a., "procedure," hence "procedural languages") needed to solve a problem; instead, the problem is simply declared (hence, "declarative language"), and the language itself (or rather the engine implementing it) seeks out the solution.
Nowadays, though, you'll find AI being implemented in any number of standard procedural languages -- C++, Java, even scripting languages like Perl and Python.
Can an abstract method be declared static in java?
No you cant, any compiler I've ever used wont allow this. It would not make any sense to do this anyway.
because the JVM directly accesses ur top class without instantiating it. Though for accessing the instance data members, the class must need to be instantiated.
How do you convert an integer to a string?
That really depends on the programming language. In Java, it is sufficient to concatenate it with a String:
int myNumber = 5;
result = "" + myNumber;
Other languages may require a special function, or method, to convert from integer to string.
Is it possible to run java program without JVM?
No. Java programs run in the Java Virtual Machine (JVM) - without it your computer won't know how to handle Java bytecode.
When to use a non-abstract method in an abstract class?
In an abstract class some methods could be abstract meaning a sub-class must provide the actual implementation code or non-abstract in those cases the functionality is common to all or most of the sub-classes. With respect to the non-abstract classes, some sub-classes could override those as needed unless they're defined final.
Example of such classes found in the core J2SE API include:
java.awt.Component, java.awt.geom.Point2D, java.io.InputStream, java.io.Reader, java.util.AbstractCollection, and many others.
Take java.util.AbstractCollection as a typical example. It provides placeholders for abstract methods iterator() and size(), and provides the concrete methods clear(), contains(), isEmpty(), etc. which use the former abstract methods to perform a generic function as defined in the specific implementation of a sub-class. The abstract class defers the details of the specific implementation to its sub-classes. The class java.util.HashSet extends AbstractCollection and defines the non-abstract implementation code for both iterator() and size() methods.
What is the preferred method of using a lint static Compass when reading magnet Azimuths?
center hold
Does the Currency data type means field can only contain text and monetary data?
That will vary on the programming language used, but in general, it is a data type with a fixed number of decimal digits - usually four - which internally stores the number it represented as a whole number - for four digits, that would mean multiplying it by 10,000. It is commonly used to store currency values, but it can also be used for other type of data, when you are sure you won't need more than four decimals; its benefit is that additions and subtractions with this data type are exact - they don't suffer from rounding errors that appear when converting between decimal and binary, with other data types.
What is the first name before of the Java Programming?
The first name of the Java Programming was Oak. It then went by the game Green and finally Java from Java coffee.
Which is to be learnes first java or java script?
There's an old saying among programmers that Java is to JavaScript as ham is to hamster. The one you choose to learn first is more a preferential choice than one of the easier way to learn.
Java is not related to JavaScript.
Java is an object-oriented, compiled computer language used to build everything from televisions to advanced scientific equipment to operating systems. Java has a very large set of prebuilt functions, and is similar to C#.
JavaScript is also object-oriented, but the kind of object orientation is different than most every other object oriented language. JavaScript allows you to manipulate the elements of an HTML document, as well as do some basic server-side stuff. JavaScript has a much smaller area of concern than Java. JavaScript remains plaintext, and is not compiled. It also has no access outside the browser (if they haven't made a mistake in the browser.)
I would suggest you learn JavaScript if you have an ambition to work with the web. Java also has a footprint on the internet, but it's mostly server-side and much smaller.
If you want to go into Software Engineering, and are looking for a good language to start dealing with the complexities therein, than Java is a good choice. It's robust, widely available, and has a vibrant community.
Learning both wouldn't hurt you either, but it's important to understand that they are not related in any way, except for their names, and an ancient connection to Netscape.
When a language has the capability to produce new data type is also called?
New, compared to what? I guess you meant user-defined data-types, which exist in almost every modern programming language.
The primitive data types in Java are:
Checked and unchecked exceptions?
Unchecked exceptions : * represent defects in the program (bugs) - often invalid arguments passed to a non-private method. To quote from The Java Programming Language, by Gosling, Arnold, and Holmes : "Unchecked runtime exceptions represent conditions that, generally speaking, reflect errors in your program's logic and cannot be reasonably recovered from at run time." * are subclasses of RuntimeException, and are usually implemented using IllegalArgumentException, NullPointerException, or IllegalStateException * a method is not obliged to establish a policy for the unchecked exceptions thrown by its implementation (and they almost always do not do so) Checked exceptions : * represent invalid conditions in areas outside the immediate control of the program (invalid user input, database problems, network outages, absent files) * are subclasses of Exception * a method is obliged to establish a policy for all checked exceptions thrown by its implementation (either pass the checked exception further up the stack, or handle it somehow) It is somewhat confusing, but note as well that RuntimeException (unchecked) is itself a subclass of Exception (checked).
What is the use of static in public static void main?
The static keyword signifies that the method belongs to the class and not any of its objects. Hence, the JVM does not have to create an object of that class before beginning execution. Imagine how the JVM would create an object and invokes its method even before the class execution starts. That is why the main method is static and is the starting point of any java application.
What is single inheritance explain with an example?
Single Inheritance
In "single inheritance," a common form of inheritance, classes have only one base class. Consider the relationship illustrated in the following figure. Simple Single-Inheritance Graph
Note the progression from general to specific in the figure. Another common attribute found in the design of most class hierarchies is that the derived class has a "kind of" relationship with the base class. In the figure, a Book is a kind of a PrintedDocument, and a PaperbackBook is a kind of a book.
One other item of note in the figure: Book is both a derived class (from PrintedDocument) and a base class (PaperbackBook is derived from Book). A skeletal declaration of such a class hierarchy is shown in the following example:
Copy Code // deriv_SingleInheritance.cpp // compile with: /LD class PrintedDocument {}; // Book is derived from PrintedDocument. class Book : public PrintedDocument {}; // PaperbackBook is derived from Book. class PaperbackBook : public Book {};
PrintedDocument is considered a "direct base" class to Book; it is an "indirect base" class to PaperbackBook. The difference is that a direct base class appears in the base list of a class declaration and an indirect base does not.
The base class from which each class is derived is declared before the declaration of the derived class. It is not sufficient to provide a forward-referencing declaration for a base class; it must be a complete declaration.
In the preceding example, the access specifier public is used. The meaning of public, protected, and private inheritance is described in Member-Access Control.
A class can serve as the base class for many specific classes, as illustrated in the following figure. Sample of Directed Acyclic Graph
In the diagram shown above, called a "directed acyclic graph" (or "DAG"), some of the classes are base classes for more than one derived class. However, the reverse is not true: there is only one direct base class for any given derived class. The graph in the figure depicts a "single inheritance" structure. Note:
Directed acyclic graphs are not unique to single inheritance. They are also used to depict multiple-inheritance graphs. This topic is covered in Multiple Inheritance.
In inheritance, the derived class contains the members of the base class plus any new members you add. As a result, a derived class can refer to members of the base class (unless those members are redefined in the derived class). The scope-resolution operator (::) can be used to refer to members of direct or indirect base classes when those members have been redefined in the derived class. Consider this example:
Copy Code
// deriv_SingleInheritance2.cpp // compile with: /EHsc /c #include
Note that the constructor for Book, (Book::Book), has access to the data member, Name. In a program, an object of type Book can be created and used as follows:
Copy Code
// Create a new object of type Book. This invokes the // constructor Book::Book. Book LibraryBook( "Programming Windows, 2nd Ed", 944 ); ... // Use PrintNameOf function inherited from class Document. LibraryBook.PrintNameOf();
As the preceding example demonstrates, class-member and inherited data and functions are used identically. If the implementation for class Book calls for a reimplementation of the PrintNameOf function, the function that belongs to the Document class can be called only by using the scope-resolution (::) operator:
Copy Code
// deriv_SingleInheritance3.cpp // compile with: /EHsc /LD #include
Pointers and references to derived classes can be implicitly converted to pointers and references to their base classes if there is an accessible, unambiguous base class. The following code demonstrates this concept using pointers (the same principle applies to references):
Copy Code
// deriv_SingleInheritance4.cpp // compile with: /W3 struct Document { char *Name; void PrintNameOf() {} }; class PaperbackBook : public Document {}; int main() { Document * DocLib[10]; // Library of ten documents. for (int i = 0 ; i < 10 ; i++) DocLib[i] = new Document; }
In the preceding example, different types are created. However, because these types are all derived from the Document class, there is an implicit conversion to Document *. As a result, DocLib is a "heterogeneous list" (a list in which not all objects are of the same type) containing different kinds of objects.
Because the Document class has a PrintNameOf function, it can print the name of each book in the library, although it may omit some of the information specific to the type of document (page count for Book, number of bytes for HelpFile, and so on). Note:
Forcing the base class to implement a function such as PrintNameOf is often not the best design. Virtual Functions offers other design alternatives.
By:- Deb