Explain the purpose of pow() method with the help of suitable java code. Also mention that pow() method belongs to which class? -Technology

1 Answer

Answer :

pow() method, a mathematical method, helps in calculating the power of any number.For example:int num=2,power=4;int ans=Math.pow(num,power);t1.setText(''+ans);The above code will calculate the value of 24 and will give answer 16.pow() method belongs to math class.

Related questions

Description : Ruby, a class XI student has just started learning java programming. Help her in the following: (i) Explain her the concept of variable -Technology

Last Answer : (i)Variables are named storage location to store values temporarily which can be changed during program execution.Data type states the way the values of that type are stored, the operations that can be done ... setText( Just Pass );In the above if statement, value of marks is being compared with 40.

Description : Ruby, a class XI student has just started learning java programming. Help her in the following: -Technology

Last Answer : i. Variables are named storage location to store values temporarily which can be changed during program execution.Data type states the way the values of that type are stored, the operations that can be done ... setText( Just Pass );In the above if statement, value of marks is being compared with 40.

Description : The class string belongs to ................... package. A) java.awt B) java.lang C) java.applet D) java.string

Last Answer : B) java.lang

Description : Anju, a beginner in java programming has written following code with some mistakes: -Technology

Last Answer : int k=0;String s='Save Earth';int l=s.length();for(int i=0;k

Description : Find the output of the following Java code snippet after execution of each java statement labelled -Technology

Last Answer : The output is:IN5inin5

Description : Write Java code to assign the value 10 to variable x and store its square value in another variable y. -Technology

Last Answer : class Square{public static void main (String args [ ]){int x. y ; x = 10 : y = x * x ;

Description : Find output of the following Java code snippet : -Technology

Last Answer : OutputDelhi 110001 10001

Description : 1. Operating system belongs to which class of software? 2. (ii) What is the need of an operating system? -Technology

Last Answer : 1. System software.2. Operating system provides a software platform on which other programs, called application programs are run.3. It acts as an interface between the user and the hardware.

Description : Explain dynamic method dispatch in Java with suitable example.

Last Answer : Dynamic method dispatch is the mechanism by which a call to an overridden method is resolved at run time, rather than compile time. When an overridden method is called through a superclass reference, Java determines which version ( ... ; // calling C's version of m1() ref.m1(); } }

Description : What is the purpose of tag ? Mention it’s any two attributes along with their purpose. -Technology

Last Answer : tag is used to insert images in any webpage.Its two main attributes are as follows:SRC : It specifies the URL of the image.ALT : It specifies an alternate text for an image.

Description : Mention any two main differences between HTML and XML. Also mention any two main features of XML for which it’s used extensively now a days. -Technology

Last Answer : Two main differences between HTML and XML:HTML is used to display data and to focus on formatting of data, whereas XML is used to describe data and focus on what data is.HTML tags are predefined, ... for which it's used extensively nowadays:XML is used to store data.XML is used to exchange data.

Description : Write down any one situation where waterfall software process can be used. Also mention one advantage and one disadvantage of waterfall -Technology

Last Answer : Situations to use/apply waterfall model(i) When project is small(ii) When problem is static.(iii) Clear and fixed requirements. Stable problem definition. Technology is static.Advantage :Simple and easy to understandDisadvantage :No working software till the last phase

Description : Write down any one situation where spiral delivery model can be used. Also mention one advantage and one disadvantage of spiral delivery model. -Technology

Last Answer : Situations to use/apply spiral model When project is large,When releases are required to be frequent,When risk and costs evaluation is important For medium to high-risk projectsAdvantage-Additional ... becomes easy as the prototype building is done in small fragmentsDisadvantage-Risk of not meeting

Description : Mention any two main differences between HTML and XML. Also mention any two main features of XML for which it’s used extensively now a days. -Technology

Last Answer : Two main differences between HTML and XML:HTML is used to display data and to focus on formatting of data, whereas XML is used to describe data and focus on what data is.HTML tags are predefined, whereas ... it's used extensively now a days:XML is used to store data.XML is used to exchange data

Description : How many rows and column will be there in the Cartesian product of the above given tables. Also mention the degree and cardinality -Technology

Last Answer : Cartesian Product:Number of Rows: 20Number of Columns: 9Degree: 9Cardinality: 20

Description : How long of a head-start is the US Military giving the 5 Taliban prisoners they exchanged for the POW?

Last Answer : answer:The only way I can see this trade as viable is if the released prisoners were chipped in some way, to be tracked back to larger lairs. I'm really confused about Bergdahl though, and ... , responsible for American deaths. Such an odd trade. I thought US Gov didn't negotiate with terrorists?

Description : If the POW stranded overseas for 5 years was your son, would you view Obama's decision not to give congress 30 days notice differently?

Last Answer : I don’t understand this beef about the notice. Wasn’t this deal in the works for, like, years? Didn’t everyone know this was going to happen eventually?

Description : Have you ever attended or been involved in a Native American pow wow?

Last Answer : answer:I have been to a pow-wow. as a musician, you know drums and music can transport you to other worlds. and other times. and you feel at peace.

Description : How do I find the descendants (or family) of a US Navy sailor murdered by the Japanese in Cabanatuan, Phillipines POW camp?

Last Answer : answer:The first place to start would be to look up the ship he served on, if he was assigned to a ship. Just google the ship name (and number if you get it) and you'll probably find several ... and its new namesake, because a lot of names are recycled) and that might be enough to get you started.

Description : Have you ever been to a pow-wow?

Last Answer : answer:Many times. I grew up in Indiana, and my mom is part Shawnee and Chickasaw. She's about ¼ Native American, but didn't start going to powwow until I was in college. Then, she got into it in ... a chance to celebrate their culture and educate others. I had a good time, but it wasn't the same.

Description : What is the full form of POW ?

Last Answer : POW full form Prisoner Of War.

Last Answer : POW - Prisoner of war

Description : What does Liliana used 444 dark power crystals to raise 141414 zombie soldiers. She wants to know how many zombie soldiers (z)(z)left parenthesis z right parenthesis she can raise with 101010 dark pow?

Last Answer : What is the answer ?

Description : Write syntax and use of pow ()function of header file.

Last Answer : pow()- compute the power of a input value Syntax: double pow (double x, double y);

Description : Write java statement to make the Net Fee text field named txtNetFee un_editable at run time. -Technology

Last Answer : txtNetFee.setEditable(false);

Description : (a) Following is a list of programming languages : BASIC, COBOL, C, JAVA -Technology

Last Answer : (a) JAVA, COBOL(b) jListl. getSelectedValue ( ) ;

Description : A domain name ending with .org belongs to (a) an educational institution (b) an organisation -Technology

Last Answer : (b) On the Internet, all Websites owned and operated by an organisation are part of the .org domain.

Description : ______provides a powerful and natural mechanism for organizing and structuring your software. It also explains how classes inherit state and behavior from their super classes and explains how to derive one class ... the java programming language: a) Object b) Inheritance c) Class d) None of These

Last Answer : b) Inheritance

Description : Each method in a java class must have a unique name . A) Not necessary B) True C) False D) None of the above

Last Answer : A) Not necessary

Description : Identify the error(s) in the following HTML code. Also, write the correct code. -Technology

Last Answer : The error in the code is that in place of color attribute there should be bgcolor.The correct code is

Description : Identify error(s) in the following HTML code. Also, write the correct code. type=“a” start=“d”> -Technology

Last Answer : tag’s attributes should be placed in between . In the list, the start attribute must be set to a numeric value and type attribute specifies ‘A’, ‘a’, T ‘i’ or ‘1’. So, the correct code is

Description : Explain the types of constructors in Java with suitable example.

Last Answer : Constructors are used to initialize an object as soon as it is created. Every time an object is created using the new' keyword, a constructor is invoked. If no constructor is defined in a class, java compiler creates ... of First Second Rectangle : "+ (r1.length*r1.breadth)); } }

Description : What is the method of viewing the source code of the current page in the Web browser? -Technology

Last Answer : Right click on the Web page and then select View Source from the context menu.

Description : What is the method of using comment line in the HTML code? -Technology

Last Answer : In HTML code, the comment line is declared as

Description : Briefly explain the two broad categories of a newspaper format giving suitable examples. -Technology

Last Answer : The analysis of newspaper content suggests two broad categories of newspaper formatBroadsheet Press (quality or serious press)…. Explanation with examplesTabloid Press (Popular or sensational press)… Explanation with examples

Description : Discuss the five fundamental categories, PMEST, with the help of suitable example. -Technology

Last Answer : P: Personality-the facet indicates the core point of the subject at handM: Matter-reflects substance or material of the subjectE: covers problem, action including methods, functioning, and other ... their subdivisions, continent, etc.Time: represents periods, like, years, decades, centuries, etc.

Description : Help Ramesh in identifying any two columns for a table named student along with their suitable data type. -Technology

Last Answer : Column NameData TypeRollNoIntegerNameVarchar(20)

Description : Describe instance Of and dot (.) operators in Java with suitable example.

Last Answer : Instance of operator: The java instance of operator is used to test whether the object is an instance of the specified type (class or subclass or interface).  The instance of in java is also known as type ... by this' keyword c.getdata(); where getdata() is a method invoked on object c'. 

Description : What are Native Ads? A. Ads that do not mention that they are ads B. Ads that are built with Java C. Ads that look & feel like the app D. All of the above

Last Answer : C. Ads that look & feel like the app

Description : Mention other ways in which java handles exceptions.

Last Answer : A: Java can handle exception using the try-catch block, throws keyword and throw keyword.

Description : Explain any five specific purpose application softwares. -Technology

Last Answer : 1. Hotel Management SystemIt refers to the management techniques used in the hotel sector. It includes hotel administration, accounts, billing marketing, housekeeping, front office or front desk, e.g. ... delivered to acustomer or set of customers.e.g. Billing Manager, BillingTracker, kBilling etc..

Description : Explain the purpose of AutoFormat feature of Word 2007. How it can be used in a Word document? -Technology

Last Answer : Auto-formatting feature of Word processing tool allows the automatic formatting of certain kinds of text while' typing. By selecting certain formatting options, theMicrosoft Office 2007 system programs can automatically ... .7. Click Add button.8. Click OK button.9. Close the Symbol dialog box.

Description : What is the difference Java and PHP?

Last Answer : …so what exactly is your question?

Description : Can anyone recommend a good Java debugger?

Last Answer : answer:

Description : Can you suggest me a good java based chat server?

Last Answer : Like real Java (the compiled kind) or a ajax one that uses javascript? Big difference. If it the second look at this Most use PHP and MySQL. You need to at least be able to make a database.

Description : Which of the following fields will not make a suitable primary key? (a) A customer’s account number -Technology

Last Answer : (b) From the given options, the data field can not be set as a primary key because it can’t be fixed for an object.

Description : Twisted pair cable is suitable for broadband application. -Technology

Last Answer : FalseTwisted pair cable has low bandwidth capabilities and broadband application requires high bandwidth.

Description : What is the use of tag in an HTML table? Give a suitable example. -Technology

Last Answer : The tag creates a table row in an HTML table. A table must have atleast one row and also, it can have as many table rows as you want. A table row is divided into table cells. A table must have atleast one table cell per table row.e.g.CheadXtitle> TR Tag

Description : Differentiate between and tag with suitable example. -Technology

Last Answer : stands for Ordered List which can be either numerical or alphabetical while stands for Unordered List which can be either ... AND OUTPUTCODEHobbiesprogrammingDramaticsCODEHobbiesGamesProgrammingDramaticsOUTPUTHobbies1. Games2. Programming3. DramaticsOUTPUTHobbies1. Games2. Programming3. Dramatics

Description : Suggest the suitable data type for Issue_Date column. -Technology

Last Answer : (i)Date(ii) alter table library modify name varchar(50);(iii) Bid column will always have a unique value which will help uniquely identify each record of Library table.(iv) Select name from library order by status desc;