What is the use of final keyword?

1 Answer

Answer :

A: Final can be used in three scenarios:
a) final before a variable makes it a constant.
b) final before a function declaration prevents it from being overridden.
c) final before a class declaration prevents it from being inherited.

Related questions

Description : Using which keyword we can access value of the instance variables and class variables of that class inside the method of that class itself. A) super B) final C) this D) either super or this

Last Answer : C) this

Description : What is the use of ‘this’ keyword?

Last Answer : A: It is used to refer to the current object (the object which calls the function).

Description : What is the use of ‘new’ keyword?

Last Answer : A: It is used for dynamic memory allocation to reference data types.

Description : What is the use of return keyword?

Last Answer : A: return keyword is used to return any value from a function. It denotes the end of a function.

Description : What is super keyword?

Last Answer : A: It is a keyword which is used to access the data members and methods of the super class from within the sub class.

Description : Which keyword is used to raise an exception?

Last Answer : A: throw keyword.

Description : In C++, the keyword void was used ……….. A) To specify the return type of function when it is not returning any value. B) To indicate an empty argument list to a function. C) To declare the generic pointers. D) All of the above.

Last Answer : D) All of the above.

Description : Which of the following is used to make an Abstract class ? (A) Making atleast one member function as pure virtual function (B) Making atleast one member function as virtual function (C) Declaring as Abstract class using virtual keyword (D) Declaring as Abstract class using static keyword

Last Answer : (A) Making atleast one member function as pure virtual function

Description : If a variable is declared final, it must include ...................... value. A) integer B) no C) initial D) float

Last Answer : C) initial

Description : State true or false. i) init() is called after start() in applet ii) applets are used for networking iii) inheritance is a part of Java Foundation Classes iv) final does not prevent inheritance A) i-true, ii- ... C) i-true, ii-true, iii-true, iv-true D) i-true, ii-false, iii-false, iv-false

Last Answer : B) i-false, ii-false, iii-false, iv-false

Description : State true or false for Java Program. i) Data members of an interface are by default final ii) An abstract class has implementations of all methods defined inside it. A) i-false, ii-false B) i-false, ii-true C) i-true, ii-false D) i-true, ii-true

Last Answer : C) i-true, ii-false

Description : State True or False. 1. Term of reference is the final output of Feasibility Study 2. Design specification report is the final output of System Analysis A) 1-true, 2-true B) 1-false, 2-true C) 1-true, 2-false D) 1-false, 2-false

Last Answer : A) 1-true, 2-true

Description : The output of problem definition stage is …………….. A) Master Development Plan B) Terms of reference C) Feasibility report D) Final product

Last Answer : B) Terms of reference

Description : Given a Non-deterministic Finite Automation (NFA) with states p and r as initial and final states respectively transition table as given below  The minimum number of states required in Deterministic Finite Automation (DFA) equivalent to NFA is (A) 5 (B) 4 (C) 3 (D) 2

Last Answer : (C) 3 

Description : What steps shall be required to rotate an object about the point P1 (as shown in fig.1) and its placement such that what was at P1 is now reduced and is at P2 (as shown in fig.2). I. Translate P1 to origin II. ... (A) I,II and III (B) II,III and IV (C) I,III and IV (D) All of the above

Last Answer : Answer: Marks given to all

Description : What are the final values of Q1 and Q0 after 4 clock cycles, if initial values are 00 in the sequential circuit shown below: (A) 11 (B) 10 (C) 01 (D) 00

Last Answer : (D) 00

Description : Minimal deterministic finite automaton for the language L={ 0n | n≥0, n≠4 } will have: (A) 1 final state among 5 states (B) 4 final states among 5 states (C) 1 final state among 6 states (D) 5 final states among 6 states

Last Answer : (D) 5 final states among 6 states

Description : Software safety is quality assurance activity that focuses on hazards that (A) affect the reliability of a software component (B) may cause an entire system to fail. (C) may result from user input errors. (D) prevent profitable marketing of the final product

Last Answer : (B) may cause an entire system to fail.

Description : There are three processes P1, P2 and P3 sharing a semaphore for synchronising a variable. Initial value of semaphore is one. Assume that negative value of semaphore tells us how many processes are waiting in queue. Processes access ... The final value of semaphore will be: (1) 0 (2) 1 (3) -1 (4) -2 

Last Answer : Answer: 1

Description : It is a commercial unit where salespeople work. 

Last Answer : Have you ever tried the term "boss training"? I think there are good results for it on Google. True, it’s not profession specific, but I think you can find good advice on this in general. For this keyword, for example, THIS is the first result on the page, it's worth reading through.    

Description : Write code to use threading and the lock keyword. 

Last Answer : using System; using System.Threading; namespace ConsoleApplication4 { class Class1 { [STAThread] static void Main(string[] args) { ThreadClass tc1 = new ThreadClass(1); ThreadClass tc2 = new ThreadClass( ... Console.WriteLine(threadNumber + " working"); Thread.Sleep(1000); } } } } }

Description : What keyword would you use for scope name clashes?

Last Answer : this

Description : The best way to improve search engine ranking is with ........  A. Keyword research  B.Internally link to other pages  C.Use ALT tags with all your images  D.All of the above

Last Answer : D.All of the above

Description : When you need to create thousands of ad groups, what is the best tool to use? A. Bulk interface creator B. Report editor C. Keyword Planner D. Google Ads Edito

Last Answer : D. Google Ads Edito

Description : Define what is the use of the abstract keyword?

Last Answer : The modifier abstract is a keyword used with a class, to indicate that this class cannot itself have direct instances or objects, and it is intended to be only a ‘base’ class to other classes.

Description : Why use the keyword “const” in C#? Give an example.

Last Answer : “Const” keyword is used for making an entity constant. We can’t reassign the value to constant. Eg: const string _name = “Test”;

Description : What is the use of Transient Keyword ?

Last Answer : Ans. It in Java is used to indicate that a field should not be serialized.

Description : How can I subscribe news by E-mail with the keyword search??

Last Answer : We don’t know what will work for you in China.

Description : What is the best tool to check the keyword ranking in Google SERPs?

Last Answer : answer:Kinda surprised no one responded to this one. Not too many SEO's round these parts. Anyway, your headline question doesn't exactly make sense. Keywords don't rank in the Google SERPs, websites do. ... seorush, seoquake, or many of the others you'd find by typing in SEO toolbars into Google

Description : Is there a program to search through my current window for a keyword?

Last Answer : In (most?) browsers that would be Ctrl + F.

Description : I would love my webpage to show up on google searches when using a certain keyword (not in the advertisement space), but i also don't want to change anything visible on the page. is there anything i can do?

Last Answer : meta tags, give this a read: http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=79812

Description : What is Keyword Stuffing?

Last Answer : http://www.keywordsolutions.co.uk/illegal-seo.php It is not an acceptable practice.

Description : What's the best tool for researching keyword popularity in google?

Last Answer : Do you mean what are popular searches? - http://www.google.com/trends Do you mean how to find what keywords on your site are popular? - http://www.google.com/webmasters/tools/ Or, do you mean finding what your results position is for different keywords?...

Description : Do search engines still ignore keyword meta tags?

Last Answer : Yes. The main (big) ones do, at least.

Description : How is a keyword search different from subject search? -Technology

Last Answer : A keyword is simply a word that shows up somewhere in a record: it can be part of name, a subject, or a title, or appear in the table of contents.This is different from a subject search, which looks for the word only in the subject heading field.

Description : Explain the Boolean operators and their impact on search result while connecting two keyword “A” and “B”. -Technology

Last Answer : a. Introduction/ definition of Boolean Operators, And Or Not.b. If A, B two key words are connected with OR operator and made the string, then the search result would be all those records which have ... since it has key word B so it will not be shown in the search result.Example . . .

Description : How to to determine if a string is a Python keyword. -Web-Development

Last Answer : answer:

Last Answer : Need Answer

Description : Is there any way to find out where my site is on a particular word? I don't want to manually search and browse so many pages.

Last Answer : Hello, http://www.serp.cz/detekce/ultimate finding placement of pages up to 1,000 positions.

Description : What is keyword proximity?

Last Answer : Keyword proximity according to SEO is the distance, in number of words, between two single keywords of a search-term. Example: If serch term is "best mobile shop" then distance between "best" ... The less the Keyword Proximity the more relevant will be the search-term according to search engine.

Description : What are the best online SEO tool and keyword research tools available in the market?

Last Answer : Soovle. Scrape suggested keywords from multiple sources. ... Jaaxy. Get thousands of related keyword ideas within seconds. ... Google Search Console. Find hundreds of â⠬ŠOpportunity Keywordsâ⠬. ... ... .. SECockpit. ... Google Keyword Planner. ... KeywordTool.io. ... Moz Keyword Explorer.

Description : Keyword Research?

Last Answer : Keyword research is important in order to be able to narrow you niche so that there is less competition for your page when it is crawled by the Search Engines. It is just one of many factors ... searching for that phrase b) low competition - not too many pages on the web that feature that phrase

Description : How to approach keyword research?

Last Answer : Optimizing your content and website randomly for keywords you think are valid is a futile practice. Before you even consider adding keywords to your content, you must first know the right keywords for ... that, you need keyword research.Read this blog for a Complete Guide: prismbizsol(dot)com/blog

Description : What is ref keyword & out keyword?

Last Answer : Refrence Variable “must” be initialized before it is passed into a method.

Description : What does the keyword “virtual” declare for a method or property? 

Last Answer : The method or property can be overridden. 

Description : What is the volatile keyword used for?

Last Answer : It indicates a field can be modified by an external entity (thread, OS, etc.). 

Description : Class methods to should be marked with what keyword?

Last Answer : static

Description : Methods must declare a return type, what is the keyword used when nothing is returned from the method?

Last Answer : void 

Description : What does the keyword “virtual” declare for a method or property? 

Last Answer : The method or property can be overridden.