answersLogoWhite

0


Best Answer

I bought a 1 ton split A\C this week. It's power consumption is 1000 W. The outer temperature in our area in day time is 34-36 degree Celsius. I set up the ac for a 27 degree which is comfortable for me. So i want to know, how to reduce then power consumtion of this ac. My room is much smaller 10(w) X 8(L) X 9(H) is the size. This ac will cool my room in just 1 minute. So after 10 minutes working, i will put this ac in standby mode in remote. After a 10 minutes, i will turn on this ac again. Does this method helps me to reduce the power consumption ?

User Avatar

Wiki User

8y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

9y ago

There are too many to list here. You can check the official documentation for String here: https://docs.oracle.com/javase/7/docs/api/java/lang/String.htmland for Vector here: https://docs.oracle.com/javase/7/docs/api/java/util/Vector.html

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the methods and interfaces from string and vector class?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you implement vector?

import java.util.Vector; public class VectorTest { /** * @param args */ public static void main(String[] args) { //instantiating a vector Vector vct = new Vector(); //Add objects to a vector vct.add("One"); //getting values from the vector String val = (String) vct.get(0); //vector size System.out.println("Vector size is: " + vct.size()); //removing elements from a vector vct.remove(0); } }


Which of these methods of string class is used to obtain character at specified index?

You don't specify "these methods", but chances are what you're looking for is the charAt method


What is the difference between classes and interfaces?

Interfaces are basically outlines. They define methods which any and all subclasses need to implement. Since an interface contains no executable code, you cannot create an instance of an interface. You need to write a class to implement the methods before you can make use of it.


Explain the concept of interfaces in java with a suitable example for the same?

interface works like an abstract class it has methods which are not defined its job is to give a general idea about the class(generic) the class can have its own functions but interface makes java program to include all the functions or methods present in the interface there are ibuilt interfaces like runnable example in threads it is runnable it makes compulsory to the class to include all the methods in interface if you dont want that then use abstract key word before class eg: interface a{void meth(int i);} class one implements a{ void meth(int i) System.out.print(i); //all other members of class// if dont use meth function it will give an error for big projects certain general functions are necessary which have to be there everywhere it gives general idea of what the program is doing


What is vector in java?

victor is growvable object.. victor is legacy class it will support the iterator and enumarotor interfaces it is synchonyzied it will support like hasMoreElemetns and hasNext element

Related questions

What do string and vector and array all inherit from that has the size method so you can take it as an argument?

string, vector and array do not have a common base class. Overload your function to accept either a string, a vector or an array.


How do you implement vector?

import java.util.Vector; public class VectorTest { /** * @param args */ public static void main(String[] args) { //instantiating a vector Vector vct = new Vector(); //Add objects to a vector vct.add("One"); //getting values from the vector String val = (String) vct.get(0); //vector size System.out.println("Vector size is: " + vct.size()); //removing elements from a vector vct.remove(0); } }


What is the use of interfaces extension through inheritance?

Interfaces are extremely useful in creating inheritance hierarchies in java programs. Interfaces cannot be extended but they will be implemented. Ex: public Interface Interface1 { public String getName() {}; } public Interface Interface2 { public int getAge() {}; } public class InterfaceExample implements Interface1, Interface2 { public String getName() { return "Anand"; } public int getAge() { return 28; } } Here I have implemented two interfaces in a class. I must provide implementation for all the methods that are declared inside both interfaces. So for simplicity I have just written 1 method in each interface but in practical situations you may have numerous methods inside each interface.


Which built in class in java contains only final methods?

String class


What is similarities between interface and classes?

The similarities are: a. They are both java basic object types b. They both can contain variables and methods (With difference being class methods have implementation code whereas the interface methods can only have declarations) c. They can both be inherited using Inheritance (extends keyword for classes and implements keyword for interfaces)


Which of these methods of string class is used to obtain character at specified index?

You don't specify "these methods", but chances are what you're looking for is the charAt method


What is the difference between classes and interfaces?

Interfaces are basically outlines. They define methods which any and all subclasses need to implement. Since an interface contains no executable code, you cannot create an instance of an interface. You need to write a class to implement the methods before you can make use of it.


Explain the concept of interfaces in java with a suitable example for the same?

interface works like an abstract class it has methods which are not defined its job is to give a general idea about the class(generic) the class can have its own functions but interface makes java program to include all the functions or methods present in the interface there are ibuilt interfaces like runnable example in threads it is runnable it makes compulsory to the class to include all the methods in interface if you dont want that then use abstract key word before class eg: interface a{void meth(int i);} class one implements a{ void meth(int i) System.out.print(i); //all other members of class// if dont use meth function it will give an error for big projects certain general functions are necessary which have to be there everywhere it gives general idea of what the program is doing


What is vector in java?

victor is growvable object.. victor is legacy class it will support the iterator and enumarotor interfaces it is synchonyzied it will support like hasMoreElemetns and hasNext element


What is the package and interfaces?

Package:- package is collection of related classes and interfaces which can be import in our program. There are different built in packages available in java.Package provide us a facility to create user define packages. Interfaces:- Interface is just like abstract class but the difference is that we can implements any no of interfaces in a single class .It is an alternative solution for multiple inheritance which is not available in java. Once we have implement the interface we can define methods of that interface in our class.


What is string buffer in java?

StringBuffer is java class available in java.lang package which provides mutable String object where String is immutable class. The methods of this class like reverse(), append(),insert() gives facility to insert data of the same object.


Java program convert the inputed words into its upper case or lower case form?

There are methods in the String class; toUppercase() and toLowerCase(). i.e. String input = "Hello!"; String upper = input.toUpperCase(); //stores "HELLO!" String lower = input.toLowerCase(); //stores "hello!" -Note: these methods are NOT modifier methods therefore the original string is still "Hello!"