What is double precision value?
That usually refers to a floating-point number that is stored in 8 bytes, and has (in decimal) about 15 significant digits. In contrast, single-precision is stored in 4 bytes, and has only 6-7 significant digits.
str.endsWith(string)
What is polymorphism in programming?
Polymorphism is the method in which a java program can have more than one function(or method) with the same name but different method signatures(different parameters or return type).
possible allowance:
void s()
void s(int a)
void s(int a,int b)
void s(float a)
int s()
Specifying exactly what is to be measured in assigning a value to a variable is called what?
operationalization
The UNION keyword is commonly used, as part of a SELECT statement in the SQL language, to combine two tables, which must have identical or at least compatible structures, vertically. That is, records from BOTH tables are placed into a single result table. If, for example, each table has 1000 records, the resulting table would have 2000 records - assuming there are no duplicates.
Which Bit wise operator is used to determine whether a particular bit is on or off?
Bitwise OR [|] operator
Who decides size of data types in a language?
The people who create the language take the liberty of deciding the size of data types in a programming lanauage.
If you (as a programmer) create your own custom data type, for example by defining a class, then you decide what goes into it - for example, in Java, if one of the pieces of data requires an integer, you have the choice of storing it as an int, which uses 4 bytes, or as a long, which uses 8 bytes (and permits larger numbers).
Sample code of loops and repetitions?
system.out.println(" print 1-100 numbers");
for(i=0;i<=100;i++)
system.out.println(i);
o/p12
3
4
5
.......
How do you initialize each element of a two-dimensional array alpha to 5?
Two-dimensional arrays are typically iterated through using nested for loops. If you had a 2-D array alpha with ints ROWS and COLS representing the number of rows and columns respectively, and ints row and col as iterators, the loop would look like this:
for (row = 0; row < ROWS; row++){
for (col = 0; col < COLS; col++{
alpha[row][col] = 5;
}
}
C plus plus program that display student name course and grade using arrays of strings?
enum field { name, course, grade }; std::string student[3];
student[name] = "Joe Bloggs";
student[course] = "C++ Programming";
student[grade] = "A+";
store the exor of the previous node address and next node address in each node of single linked list .further exor the nodes to proceed forward or backward as necessary
How to declare an array in easytrieve that occurs 99999 times?
WS-DAYS-OF-WEEK W 10 A OCCURS 99999 refer: http://code.xmlgadgets.com/2010/09/20/occurs-clause-in-easytrieve/
A daemon thread is often called a "service thread" or a "nonessential thread". The other kind of thread is often called a "user thread."
The JVM will exit when all user threads have returned from their run methods. Once all of the user threads have returned, any active daemon threads will be forced to stop running.
Let's look at an abstract example to see the difference... Pretend you have written a client-server GUI-based chat client. You'll typically have at least one thread sitting around and listening for input from the other program (the server will listen for input from the client and the client will listen for input from the server). These threads can be set as daemon threads, because you don't want the JVM to keep executing if those are the only threads left.
Not let's look at the GUI for your programs. These will be run in a user thread, since you want to make sure that the JVM does not exit until the GUI thread finishes running (you will generally stop these threads from running when the user clicks to close the window).
What is Programming languege and why we use programming languege andexplain it?
A computer can do many different things, depending on the program provided to the computer. The program is a list of instructions.Rather than learn the "machine language", which is the underlying instructions the computer can execute, nowadays people usually program in a "programming language", which is closer to a human natural language, usually English. The instructions in this programming language are then converted into machine language, by programs specifically designed for that purpose (assemblers, compilers, and - in a way - interpreters).
Writing in a programming language is much easier than learning the machine language.
How objets call from class in java?
if we are acessing static members we can call them directly,while coming to non static members inorder to call object we have to call by using new operator......
Can an short value be assigned to int variable?
Yes, but you may cause truncation error because the short variable does not necessarily have the same range as an int variable. Most modern compilers will flag this as a warning. If you know that the value of the int variable will not exceed the range of a short variable, you can explicitly prevent the warning with a typecast, i.e. someShort = (short) someInt; and the compiler will assume that you know what you are doing.
What is an Array and to use Array in Action script?
Array is a ranged variable, using it is required by many actions.. like where you going to processing data from a file where there is n lines in a file and you want to get one line of it..
ex: if variable $line is an array of lines in a text file:
$line[1] is second line of the file... just keep it in mind arrays starts from zero :) it means line 1 of the file will be accessed with $line[0];
What is noun verb analysis in object oriented analysis and design?
Noun-verb analysis is a means of identifying classes and their methods. If you look in the "problem statement" (a statement that explains what a software application should do) for nouns, they will often wind up as classes. If you look for verbs, they will be methods of those classes.
A simple example of a problem statement might be:
We are a training facility. We need to be able to track the classes that students take. Classes are taught by teachers. Students enroll in classes. Each class is assigned to one teacher and one classroom.
So, we have classes, students, teachers and classrooms. Class will have methods like AssignTeacher and AssignClassroom. Students will have Enroll. Of course, there is more, such as how to handle the time of each class, and so on. But this gives an idea.
How do you identify which JPanel type panel caused the event in Java?
I never tried this, but it should work if you get the event source and cast it to a JPanel object. This is what it should look like:
JPanel newPanel = (JPanel) event.getSource();
What you did is assign the reference of the source panel to a new panel, and now you can go on with your code.
Any name can be placed in an array, be it a primitive name or an object name, even a function pointer. Four examples of common objects that may be placed in an array include any object defined in the STL (standard template library), which includes vectors, lists, iterators and maps. All are self-explanatory, although a vector is simply an array implemented as an object. Therefore an array of vectors is nothing more than an array of arrays (effectively a multi-dimensional array). However, vectors are the "correct" way of implementing arrays in C++ (unless you specifically wish to use C-style code in your C++ projects), thus a multi-dimensional array is best implemented as a vector of vectors.
When does this pointer get created?
When we call non static method with respect to class object then this pointer is created which keep the reference of that object.