How do you find flames using string?
I'm not sure what your asking. Is flames another string or the contents of a string?
I can't answer your question because your either asking something way beyond or ask something that has no answer.
Is it possible to initialize null character in string?
Java support system includes:
· Applets
· Servlets
· Java Beans
· EJB
· JSP
· XML
· SOAP
· CORBA
How many number of argument are there in round method?
The round method of the Math class is overloaded. You can either pass a double or a long into the round method
When class definition not found error will occur?
This error occurs when you try to run a java program and the JVM (java virtual machine ) do not found the class file for your program.
there are two reasons for this kind of error to occur
1. If you haven't set the CLASSPATH environment variable for the bin directory of your java installation or to the current directory in which you are working, then JVM will never know where to look for the class files you are trying to load and so the error occurs.
2. you may be trying to run your program with a wrong class name which doesn't exist.
note: this error doesn't mean that there is any error in your code.
Why do you need exception handling codes in a program?
separating error handling code from 'regular' code
A default constructor has how many parameters?
None, zero. Example: new MyClass(); //and public classMyClass{} no constructor defined inside of MyClass
Write a program to calculate the sum of the sequence number from 1 to n loop?
public static final int getSum(final int n) {
int sum = 0;
for(int i = 1; i <= n; ++i) {
sum += i;
}
return sum;
}
Write a program to swap 2 variables with out using 3rd variable through cout?
#include <iostream>
using namespace std;
int main()
{
int a, b;
cin >> a;
cin >> b;
a = a * b;
b = a / b;
a = a / b;
cout << a << " " << b;
char wait;
cin >> wait;
return 0;
}
What is meant by polymorphism?
Polymorphism
Polymorphism allows the programmer to treat derived class members just like their parent class' members. More precisely, Polymorphism in object-oriented programming is the ability of objects belonging to different data types to respond to method calls of methods of the same name, each one according to an appropriate type-specific behavior. One method, or an operator such as +, -, or *, can be abstractly applied in many different situations. If a Dog is commanded to speak(), this may elicit a bark(). However, if a Pig is commanded to speak(), this may elicit an oink(). They both inherit speak() from Animal, but their derived class methods override the methods of the parent class; this is Overriding Polymorphism. Overloading Polymorphism is the use of one method signature, or one operator such as "+", to perform several different functions depending on the implementation. The "+" operator, for example, may be used to perform integer addition, float addition, list concatenation, or string concatenation. Any two subclasses of Number, such as Integer and Double, are expected to add together properly in an OOP language. The language must therefore overload the addition operator, "+", to work this way. This helps improve code readability. How this is implemented varies from language to language, but most OOP languages support at least some level of overloading polymorphism. Many OOP languages also support Parametric Polymorphism, where code is written without mention of any specific type and thus can be used transparently with any number of new types. Pointers are an example of a simple polymorphic routine that can be used with many different types of objects.
If structure is arraythen an individual array element can be accessed by writing a variable?
A structure is not an array. Individual array elements are accessed through a number, called a "subscript". This subscript can be a constant, or a variable, or any expression that can be evaluated to give an integer.
A structure is not an array. Individual array elements are accessed through a number, called a "subscript". This subscript can be a constant, or a variable, or any expression that can be evaluated to give an integer.
A structure is not an array. Individual array elements are accessed through a number, called a "subscript". This subscript can be a constant, or a variable, or any expression that can be evaluated to give an integer.
A structure is not an array. Individual array elements are accessed through a number, called a "subscript". This subscript can be a constant, or a variable, or any expression that can be evaluated to give an integer.
Why matrice's definition includes rectangular array instead of array?
Matrices itself is a combination of rows and columns.we can not use one-dimenssional array to save the values of matrices.instead we use the rectangular array which contains rows and columns.thats it.
What makes for a good or bad variable name in C plus plus programming languages?
A good variable name is one that is clear, related to the data it stores. Also, you should try to avoid confusions with other variables.
An empty constructor takes no arguments and calls the default constructor
Why are public instance variable dangerous?
Public instance variables are not dangerous, but can put your program at risk of being hacked. For instance, say the variable bacon is an integer that represents your health in a game, and its value is 50. Someone could change its value to 1,000,000 by using a program called a decompiler, then change the code, and recompile it.
What is the difference between Char a equals string and char a equals String?
Well, if you write like char a=string; it is wrong. You have to declare the size of the array or else put the brackets immediately after the variable declaration. You also have to put the string in quotes, or provide a comma-separated list of characters. E.g.,
char a[]={'s','t','r','i','n','g'};
Or more simply:
char a[] = "string";
Remember that C/C++ is case-sensitive and that all keywords are lower case. Thus Char would be regarded as an invalid keyword.
Which data type is the only one that can be used in calculations?
Which data type is the only one that can be used in calculations?
How can I write a method that returns true if the number passed can be divided by all its digits?
Write a loop, in which you divide by each of the digits; if it's NOT divisible, set the variable "result", which you initiall set to "true", equal to "false".
The tricky part is extracting the digits; one way to do this is to convert the number to a string, and use string functions. You can also repeatedly divide by 10, and use the remainder. That is, first take the remainder and test it; then divide the remaining number by 10.