What is a renumeration package?
Well if you're talking about a "remuneration" package...
Package describing all the benefits of a position, including: wages, commissions, bonuses, option grants or purchases, per diem, entertainment expense account, vehicle allowance, moving expenses, tax assistance, computer and telephone access, health and life insurance, IRA matching, travel expenses, etc.
Accept 2 no and display it in java?
package scanPackage;
//Importing Scanner
import java.util.Scanner;
public class display {
public static void main(String[] args) {
//Creating scanner Object
Scanner scan = new Scanner(System.in);
//Taking first system input
String str1 = scan.nextLine();
//Taking second system input
String str2 = scan.nextLine();
//Printing both Input
System.out.println(str1);
System.out.println(str2);
}
}
Why java is the name of programming language?
James Gosling initiated the Java language project in June 1991 for use in one of his many set-top box projects.[5] The language, initially called Oak after an oak tree that stood outside Gosling's office, also went by the name Green and ended up later renamed as Java, from a list of random words. http://en.wikipedia.org/wiki/Java_(programming_language)
Which symbol is used with a variable to indicate to the script that you are reading the contents of that variable?
write a program which reads names of students and their telephones from a file and produce a linked list ordered in alphabetical order by the surname of the student.
Write a program in java to enter a String and convert all cat to dog?
import java.io.*;
class CatToDog
{
protected byte words(String xs)
{
byte a=0;
for(byte i=0;i<xs.length();i++)
{
if(xs.charAt(i)==' ')
a++;
}
return (byte)(a+1);
}
protected static void main()throws IOException
{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
CatToDog o=new CatToDog();
System.out.print("Enter the String: ");
String s=in.readLine();
byte a=o.words(s),b=0,c=0;
String w[]=new String[a];
for(;b<a;b++)
w[b]="";
for(b=0;b<s.length();b++)
{
if(s.charAt(b)==' ')
c++;
else
w[c]+=s.charAt(b);
}
for(b=0;b<a;b++)
{
if(w[b].equalsIgnoreCase("Cat"))
System.out.print("Dog ");
else
System.out.print(w[b]+" ");
}
}}
What are the different data types suppourted by c.give example?
data types supported by "C" are int , float , char , long , double , uint
How do you compile and execute Java program in which we find the highest of any five numbers?
In the same way as you would compile and execute any other Java program.
Compile: use the "javac" command. Or use the built-in "compile" command in your favorite IDE.
Execute: Use the "java" command. Or use the built-in "run" command in your favorite IDE.
# Click "Tools" --> "Internet Options" # Select the Advanced Tab, and scroll down to "Java (Sun)" # Check the box next to the Java version # Next, select the Security Tab, and select the "Custom Level" button # Scroll down to "Scripting of Java applets" # Make sure the "Enable" radio button is checked. # Click OK to save your preference
How do you develop a JAVA program that computes matrices?
Matrices can't be "computed" as such; only operations like multiplication, transpose, addition, subtraction, etc., can be done. What can be computed are determinants.
If you want to write a program that does operations such as these on matrices, I suggest using a two-dimensional array to store the values in the matrices, and use for-loops to iterate through the values.
What is setDefaultCloseOperation in java programming?
An options that tells a JFrame window what to do when the user click the closeWindow button. Mostly its set to DISPOSE_ON_CLOSE or EXIT_ON_CLOSE. Dispose closes the active window. exit terminates the program.
Why did James Gosling come up with Java?
James Gosling came up with Java because he wanted a language that is
1. "simple, object oriented, and familiar".
2. "robust and secure".
3. "architecture neutral and portable".
4. "high performance".
5. "interpreted, threaded, and dynamic".
Did linker converts source program into machine code?
Write a java program to pass a string have a good day from command line?
public class HaveAGoodDay {
public static void main(String[] args) {
for (final String arg : args){
System.out.print(arg +" ");
}
}
}
compile and run the program:
java HaveAGoodDay have a good day.
output:
have a good day.
#include<iostream.h> #include<stdlib.h> #include<conio.h> struct poly { int coeff; int x; int y; int z; struct poly * next; }; class polynomial { private : poly *head; public: polynomial():head(NULL) { } void getdata(); void display(); void insert(poly *prv,poly *curr,poly *p); polynomial operator + (polynomial ); }; polynomial polynomial :: operator +(polynomial px2) { polynomial px; poly *t1,*t2,*t3,*last; t1 = head; t2 = px2.head; px.head = NULL; while(t1 != NULL && t2 != NULL) { t3 = new poly; t3->next = NULL; if(t1->x t2->z) { t3->coeff = t1->coeff + t2->coeff; t3->x = t1->x; t3->y = t1->y; t3->z = t1->z; t1 = t1->next; t2 = t2->next; } elseif(t1->x > t2->x) { t3->coeff = t1->coeff; t3->x = t1->x; t3->y = t1->y; t3->z = t1->z; t1 = t1->next; } elseif(t1->x < t2->x) { t3->coeff = t2->coeff; t3->x = t2->x; t3->y = t2->y; t3->z = t2->z; t2 = t2->next; } elseif(t1->y > t2->y) { t3->coeff = t1->coeff; t3->x = t1->x; t3->y = t1->y; t3->z = t1->z; t1 = t1->next; } elseif(t1->y < t2->y) { t3->coeff = t2->coeff; t3->x = t2->x; t3->y = t2->y; t3->z = t2->z; t2 = t2->next; } elseif(t1->z > t2->z) { t3->coeff = t1->coeff; t3->x = t1->x; t3->y = t1->y; t3->z = t1->z; t1 = t1->next; } elseif(t1->z < t2->z) { t3->coeff = t2->coeff; t3->x = t2->x; t3->y = t2->y; t3->z = t2->z; t2 = t2->next; } if(px.head == NULL) px.head = t3; else last->next = t3; last = t3; } if(t1 == NULL) t3->next = t2; else t3->next = t1; return px; } void polynomial :: insert(poly *prv,poly *curr,poly *node) { if(node->x curr->z) { curr->coeff += node->coeff; delete node; } elseif((node->x > curr->x) (node->x curr->y && node->z > curr->z)) { node->next = curr; prv->next = node; } else { prv = curr; curr = curr->next; if(curr == NULL) { prv->next = node; node->next = NULL; return; } insert(prv,curr,node); } return; } void polynomial :: getdata() { int tempcoeff; poly *node; while(1) { cout << endl << "Coefficient : "; cin >> tempcoeff; if (tempcoeff==0) break; node = new poly; node->coeff = tempcoeff; cout << endl << "Power of X : "; cin >> node->x; cout << endl << "Power of Y : "; cin >> node->y; cout << endl << "Power of Z : "; cin >> node->z; if(head == NULL) { node->next = NULL; head = node; } elseif(node->x head->z) { head->coeff += node->coeff; delete node; } elseif((node->x > head->x) (node->x head->y && node->z > head->z)) { node->next = head; head = node; } elseif (head->next == NULL) { head->next = node; node->next = NULL; } else insert(head,head->next,node); } } void polynomial :: display() { poly *temp; temp = head; cout << endl << "Polynomial :: "; while(temp != NULL) { if(temp->coeff < 0) cout << " - "; cout << abs(temp->coeff); if(temp->x != 0) cout << "x^" << temp->x; if(temp->y != 0) cout << "y^" << temp->y; if(temp->z != 0) cout << "z^" << temp->z; if(temp->next->coeff > 0) cout << " + "; temp = temp->next; } cout << " = 0"; } void main() { polynomial px1,px2,px3; clrscr(); px1.getdata(); px2.getdata(); px3 = px1 + px2; px1.display(); px2.display(); px3.display(); getch(); }
Could array may have elements that are numbers and strings?
In Java:
Not as primitives; but I believe you could create an array of Objects, and then initialize the elemnets as subtypes of the Object class, i.e., any class. I don't think this would be very practical (in Java); if (for example) you need to store information about people's names with their ages, create a class called "Person" that has those two attributes, then create an array of Persons.
In Java:
Not as primitives; but I believe you could create an array of Objects, and then initialize the elemnets as subtypes of the Object class, i.e., any class. I don't think this would be very practical (in Java); if (for example) you need to store information about people's names with their ages, create a class called "Person" that has those two attributes, then create an array of Persons.
In Java:
Not as primitives; but I believe you could create an array of Objects, and then initialize the elemnets as subtypes of the Object class, i.e., any class. I don't think this would be very practical (in Java); if (for example) you need to store information about people's names with their ages, create a class called "Person" that has those two attributes, then create an array of Persons.
In Java:
Not as primitives; but I believe you could create an array of Objects, and then initialize the elemnets as subtypes of the Object class, i.e., any class. I don't think this would be very practical (in Java); if (for example) you need to store information about people's names with their ages, create a class called "Person" that has those two attributes, then create an array of Persons.
How man i find out my classpath?
Classpath is represented by "classpath" environment variable, not case sensitive, print its value
in Linux echo $classpath
in Windows echo %classpath%
from java program use System.getProperty("java.classpath")
Which board game has nibs and voids?
Nibs is a term used in Cribbage....and a void in cards is when you don't have cards of that suit in your hand. So my vote goes to Cribbage.... ?? :-)
How many constructors does the StringTokenizer class have?
As of Java 1.6 it has 3:
StringTokenizer(String str)
StringTokenizer(String str, String delim)
StringTokenizer(String str, String delim, boolean returnDelims)
What is action-mapping in java?
In java action-mappings are not available. Action-mappings are part of struts controller.
Through these action-mappings, you will map a particular request to an action class, i.e.
which action should be executed on press of a button.
What is the purpose of a byte in Java?
Java coding uses byte as one of the programming directives to clarify commands. Byte can also be used in the Java code to save memory space when the need arises.
Why flowcharts are not good for object oriented programming?
Object oriented programming requires objects generally represented as classes to "talk" to other objects via methods/functions. This is a different approach from procedural languages where a procedure i.e. steps were constructed and written in the form of a flow chart.
For object-oriented programming the "flow" between objects is more important than the construction of a program. For this we use class diagrams. (using tools like rational rose). The methods themselves where the functioning takes place are so small and simple that for constructing them a flow chart is generally not required for a seasoned programmer. Thus, flowcharts are simply not a good instrument for oo programming because here data is given much more importance than the procedures that operate on them.
What does java code look like?
Below is a simple example- the function of the code below is to print out the words "Hello" "world" to the screen.
public class Hello
{//opens class
public static void main(String args[]) //main method
{
System.out.println("Hello world"); //prints words in brackets to the screen
}//closes main method
}//closes the class