Is array list a value type or reference type?
Array lists are objects and are of the reference data types. If you pass an array list from a java method to another as an argument, you need not return this from the target method because the modifications to the list would be happening in its value and hence would be available in the parent or calling method without being received as an output from the called method.
How to Uppercase the all vowels in Java?
Assuming that you want to uppercase only the vowels in a String, you can write a loop to go through all the chracters in a String and when a character is a vowel you can convert it to uppercase. I think one way to do this is as follows:
String originalString = "aobxkijejku";
StringBuffer buffer = newStringBuffer(originalString);
for(int i = 0, len = originalString.length(); i < len; i++){
if(buffer.charAt(i) 'u'){
buffer.setCharAt(i, 'U');
}
}
String modifiedString = buffer.toString();
1. The Organization of data into information For data to be made meaningful it must have a purpose. The purpose of the stored data should reflect the purpose and type of the information system. Data needs to be processed and organised before it becomes information. Organising the data will most likely involve the processes of sorting and filtering (classifying) before it can be analysed and stored for later retrieval. Data dictionaries are used to help organise the data. 2. Ability to Analyse the Information Once the data has become information it needs to be analyzed to make the most of the information stored. Analysis of databases is done through the tools of queries and reports. You can find answer in the net.... like i did....XD
How do you use indexOf in java?
indexOf is a method of the String class. Since the indexOf method is overloaded, I will be using the indexOf(String str) version in this example. According to the API Documentation, this method "Returns the index within this string of the first occurrence of the specified substring." So, if you wanted to find the position of the letter 'v' in the String 'Java' and print it out, you would do this: String str = "Java"; int i = str.indexOf("v");
System.out.println(i);
If the character you passed in the indexOf method does not exist in the String, indexOf would return a -1 (negative one).
What type of reference is C19?
A reference variable is used to refer to or give access to an object. A reference variable is declared to be of a particular type and that type can not be altered.
Write algorithm compute sum of square of N numbers?
Oh, what a lovely question! To compute the sum of the squares of N numbers, you can create a simple algorithm. Start by initializing a variable to hold the sum, then loop through each number, square it, and add it to the sum. Once you've done this for all N numbers, you'll have the sum of their squares. Just like painting a happy little tree, take your time and enjoy the process.
What does programming error-exception occurred mean on DVD shrink?
A program error exception in ANY program means that some error occured in the program that was unexpected, hence the word "exception" here. An error that a program expects might happen wouldn't be an exception per se, and it would be programmed to deal with that. You might try to update to a newer version of the program that might have a fix built into it to deal with that, or post a bug report (if it's repeatable) on the creator's website so they know that issue exists.
What can you do if the threads are stripped on the O2 sensor?
If the threads of the sensor are stripped, it must be replaced. When this happens, the threads on the exhaust are usually also damaged. These can be repaired by "chasing" them with the appropriately sized tap. Be sure to use high temp. anti-seize on the new sensor. Sensors should only be removed when the exhaust system is at operating temperature.
Where do objects and references stored in memory in java?
Objects are stored in an area of memory called the "heap", whilst reference variables are stored in the "stack". These are both parts of the computer's RAM memory; the Java Virtual Machine (JVM) simply reserves part of the memory available to it for the stack and for the heap, and manages them accordingly.
An early wireless data network developed at U of Hawaii. It contributed to the subsequent development of Ethernet and WiFi. They initially used upside-down beach umbrellas for antennas.
Write a java program to generate the Fibonacci Series using for loop?
class Fibonacci
{
public static void main(String args[])
{
System.out.println("enter the number upto u want");
int number=Integer.parseInt(args[0]);
int a=0,b=1,c=0;
System.out.print(a+" "+b);
for(int i=1;i<=number;i++)
{
c=a+b;
System.out.print(c+" ");
a=b;
b=c;
}
}
}
the number are given to the run time where are print the series eg: 5
0 1 1 2 3 5 8 13................
Would the plural of more than one class be classes'?
Yes. Just like any other word, the term class too has a plural which is "classes". The term classes is very commonly used to refer to a group of classes (more than one class). It is not an uncommon word. So, if you refer to the word classes, any java programmer will know that you are referring to more than one class at a shot.
Is 'void' a data type in java?
No. The void keyword is used to signify that a method will not return any objects. For example, if you type in "double", you'll need a return statement that has a double. So "void" means that there will be nothing returned.
What is the difference between Typecast and Typedef?
Typecasting is to make a variable of one type, act like another type for one single operation.
Type-def is to assign alternative names to existing types.
In general, people will work harder when there are other people doing the same thing next to them. And with an instructor giving you every move. If you do it on your own, you are more likely not to work as hard or do as many reps. It's just the way most people are. A class also give you moves you may not know how to do properly or at all. You will get benefits from both class work outs and on your own work outs.
Similar benefits can be achieved through working alone with a DVD as when working with a live group in a Gym or other setting. The DVD option combines some of the benefits of each of the other options. For one, it allows the exerciser to be in charge of which work out will be done, and when, on any particular day as is the case when working completely alone doing one's own routine or regimen.
While giving the exerciser increased control, DVD options also bring the enthusiasm and encouragement that come from having a leader, as well as instructions on proper technique that come from a class teacher. Those DVDs which include a group along with the instructor would bring the motivation that comes from working out with others, similar to a live class, albeit without the real-time interactions which would likely occur in a live class.
Answer
exercising with a group such as in a cardio class of some sort you have some added benifits. you can learn new and proper techniques from others that have more experience. you will tend to work harder with someone giving direction. if a group is doing 20 push ups you will probobly try to do the whole 20. if by your self you might only do 10 if you start to get tired,
and depending on where you work out and with who, you are more likely to continue coming back long term with others encouraging you.
now if you are serious about your work out you will probobly want to work out alone because you know what you are doing and what your body needs. Lifting weights with a partner is safer and you can push a little harder knowing someone is there to back you up if you cant get it up. lifting with a partner you will defidently have serious encouragement and will work much harder than you would alone.
That is correct. Any processor worth it's salt will, when evaluating an expression like "1 and 0 and 1 and 1 and 0" will get as far as the first zero and "realize" that full expression will result in false regardless of the rest.
Examples of inherited from a chicken?
class Chicken {
public:
virtual
~Chicken( )
{ }
virtual void
call( ) = 0;
};
class Rooster : public Chicken {
void
call( )
{ cout << "cocka-doodle-doo" << endl; }
};
class Hen : public Chicken {
void
call( )
{ cout << "cluck cluck" << endl; }
};
class Chick : public Chicken {
void
call( )
{ cout << "peep peep" << end; }
};
3 examples of if else statement?
if (i==1) puts ("i==1");
if (i==2) if (j==3) puts ("i==2, j==3);
else puts ("i==2, j!=3");
if (i==2) if (j==3) puts ("i==2, j==3);
else puts ("i==2, j!=3");
else if (j==3) puts ("i!=2, j==3);
else puts ("i!=2, j!=3");
Why object oriented programming is popular than other programming language?
Not, I don't think OO languages are used more than the non-OO ones, if your "popularity" is based on the number of the developers.
Write a program in java to print total salary of an employee?
/* hra=25% of salary
* ca=15% of salary
* ea=10% of salary
* total salary= hra + ca + ea
*/
import java.io.*;
class pay
{
protected static void main()throws IOException
{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter the salary: ");
int sal=Integer.parseInt(in.readLine());
float tsal=sal;
if(sal>5000)
{
float hra,ca,ea;
hra=sal/4;
ca=(sal*3)/20;
ea=sal/10;
tsal=sal+hra+ca+ea;
}
System.out.print("Total Salary= "+tsal);
}
}