What is the fees of java course in NIIT?
for core java u'l be charged 7000...
but some one told me it around 13860/-
How do you scramble a string in java?
Take out one letter, using a random number. Then replace the string with the new string, without the extracted letter. Repeat, until the remaining string has a length of zero. The extracted letters get added to a new string.
Take out one letter, using a random number. Then replace the string with the new string, without the extracted letter. Repeat, until the remaining string has a length of zero. The extracted letters get added to a new string.
Take out one letter, using a random number. Then replace the string with the new string, without the extracted letter. Repeat, until the remaining string has a length of zero. The extracted letters get added to a new string.
Take out one letter, using a random number. Then replace the string with the new string, without the extracted letter. Repeat, until the remaining string has a length of zero. The extracted letters get added to a new string.
Explain various looping statements in java?
The for loop is commonly used to repeat a statement a certain number of times, especially if you know in advance how many repetitions you need.
while will continue to repeat the statement while the condition is true.
do...while is similar to while, but the condition is evaluated after the command is executed.
In all of these cases, you can replace the single command with a block of code, i.e., several commands within curly braces.
How can you convert byte to string in java?
To convert byte to String in java use the String(bytes, UTF-8); //example for one encoding type. You must know the special encoding that contains a variety of characters.
What is the package class name that Display inherits from?
A Display class in contained in this package as well... org.eclipse.swt.widgets
What is scalar data structures?
A scalar variable can hold only one piece of data at a time. So in C, C++ and Java scalar data types include int, char, float and double, along with others. Scalar variables of the same type can be arranged into ascending or descending order based on the value.
Prasangax
Why do compilers convert infix expressions to postfix?
people almost exclusively use infix notation to write mathematical expressions,
computer languages almost exclusively allow programmers to use infix notation.
However, if a compiler allowed infix expressions into the binary code used in the
compiled version of a program, the resulting code would be larger than needed and very
inefficient. Because of this, compilers convert infix expressions into postfix notation
expressions, which have a much simpler set of rules for expression evaluation.
Postfix notation gets its name from the fact that operators in a postfix expression
follow the operands that they specify an operation on. Here are some examples of
equivalent infix and postfix expressions
Infix Notation Postfix Notation
2 + 3 2 3 +
2 + 3 * 6 3 6 * 2 +
(2 + 3) * 6 2 3 + 6 *
A / (B * C) + D * E - A - C A B C * / D E * + A C * -
Where as infix notation expressions need a long list or rules for evaluation, postfix
expressions need very few.
Define non standard data types?
In programming, non-standard data types can be anything; a model for a house, a person, a bank account, a galaxy. They all have in common that they are created through composition of basic built-in data types such as integers, strings or floating point data types.
To define non-standard data types, programming languages typically provide three to four language tools:
Arrays can combine multiple entities of the same basic or non-standard type into as larger new type. When an array is viewed as its own data type rather than a simple accumulation of variables, the whole is more than the sum of its parts: in the C programming language, for example, an array of bytes defines a string or characters.
Structures can combine multiple entities of the same or different data types into one record, from which all record members are accessible at the same time. For example, a student's record might hold the name and date of birth for a single student.
Unions can combine multiple entities of the same or different data types into one record, from which only one record member is accessible at any one time. For example, a union containing the key characteristic of a geometric shape might contain the number of edges of a polygon as an integer number, or a sphere's radius as a floating point variable. The programmer needs an additional method to determine whether this union ought to be interpreted as the edge-count or the radius.
Object-oriented programming languages also support classes. In simple terms, classes are structures which also contain functions, not only data. (Note this is a radical simplification. Classes and object-oriented programming have more to offer than glorified data structures.)
Eg for forloop and while loop?
//Both loops will print out the alphabet {A-Z}
int i = 65;
while(i<65+26)
{
System.out.println((char)i);
i++;
}
...
for(int i=65; i<65+26; i++)
System.out.println((char)i);
As you can see, both loops accomplish the same thing. A while loop simply has a conditional statement that tells the loop what needs to be true for it to keep on looping.
A for loop is more concise: it has 3 parts: a starting value, a conditional statement, and a(n) action for what the loop should do after every iteration (in this case increase i by 1).
5.00
Give an program on data encapsulation?
Encapsulation is the the hiding of code inside of Objects. The method of performing encapsulation practices is set in a Class's Meta Data inside of the class declaration. To be more specific the modifers of class attributes and methods can be either private or public.
Example 1
// Placing before the attribute declaration the public modifier allows this attribute to be
// accessed by other objects or the main method.
public int age;
Example 2
// Placing private before the attribute declaration prevents other object or the main method
// from accessing the data.
private int age;
What does it mean that a vector is synchronized in Java?
It means that multiple threads can safely read/modify data from a vector at the same time. Attempting to do that with an unsynchronized data type - an ArrayList, for instance - could result in an exception being thrown, or incorrect data being stored.
What does the poem Mutability mean?
Two diffferent presons rather two poets wrote their poems in the same title with different ideas is referred as poem mutability .
Can classes be symmetric or transitive?
It depends on what you mean by class. Are you using symmetric in the sense classes offered within a college or university or Geometry, mathematics, biology, chemistry etc.? In a general sense typically classes within an institution of learning are symmetric considering they are well-proportioned, as a whole, and regular in form or arrangement of corresponding parts. So we conclude yes.
As far as transitive, once again we come to the question as to what sense you are using the term. Still, if you are using it as a term that means characterized by or involving transition; transitional; intermediate, or passing over to or affecting something else; transient. Then its yes again. I would imagine you can conclude then that the answer can be yes to both symmetric, and transitive. However, once again it depends on what sense your using these words.
How do you fix Java script errors?
What do you mean by fix?? If you mean that the error should not be shown on the screen, embed the entire javascript code in a HTML comment. Debugging javascripts can be pretty complex especially if you use globals. So its recommended you write short scripts wherevr needed and have all your methods declared in the head.
Name the following-A key word to use the classes defined in a package?
To access the classes which are present in other packages, we have to import the package to our program using the keyword 'import'. Eg: import packagename.subpackage.Class; OR import packagename.subpackage.*; /*Adds all the class which are present in package*/ 'extends' is the keyword used to inherit the classes defined in other packages.
How do you create a e-passport website using java swing?
You really don't want to do that. Swing is for desktop applications. If you want to create a website, use Java Server Faces or Applets, not Swing.
Write java program to merge alternate lines from file1 and file2 into file1?
I suggest something like this:* Open file1 and file2
* Create a temporary output file, for writing
* Read a line from file1, write it into the output file
* Read a line from file2, write it into the output file
* Repeat the previous two steps, while you are not at end-of-file in either of the two files
* At this point, if you are NOT at end-of-file in file1, read the remaining lines of file1, and write them to the output (you can write a loop for this).
* Similarly, if you are NOT at end-of-file in file2, read and write the remaining file.
* Close file1, file2, and the output file.
* Copy the temporary output file back to file1
* Erase the temporary output file
1010
Missing semicolon in c program is a compile time error?
It's a syntax error, which is detected during compilation, yes.
What is url connection in java?
Connection interface consists of method for contacting a database . The connection object represents communication context.
What are the dimensions of an array of 3x6?
The dimensions are 3 x 6. Also, since there are two numbers, you might say it is a 2-dimensional array.