answersLogoWhite

0

What else can I help you with?

Continue Learning about Engineering

What is the method used to implement an if else statement in C?

The else statement is an optional part of an if statement that is executed if the primary if condition is false.if (condition) true_statementelse false_statement


The import statement is always the first noncomment statement in a Java program file?

False. If your class belongs to a package, the package statement should be the first statement. Plus, it's possible that you're not using any resources outside the default java.lang package, and would have no need to import any additional packages.


Explain this keyword with example in java?

this is one of the keyword in java programming language. this can be used inside any method to refer to the current object. example: class Box{ double width; double height; double depth; Box(double w,double h,double d){ this.width=w; this.height=h; this.depth=d; }} The significance of the keyword this would be realized in cases where we use inheritance. There may be cases where you have methods of the same name in both the current class and its parent. That is when the keyword "this" can be used to tell the JVM to invoke the method of the current class and not the parent class. this refers to the object with which the method inside a class is called. For instance, I call studentObject.getGrade(), in the getGrade() method to call my own method or variables, i.e. a private instance variable named grade, I would state: this.grade. Though inside the class any method or variable that is called without an object automattically calls the most local method or variable, i.e. I could just call grade for the above example given that I do not have a variable of the same name declared in the method. "this" is useful in those circumstances where there are more than one variable with the same name, just for example that I do have a variable named grade in my getGrade() method, to get my instance variable for my object I would simply call this.grade, thus to be safe use this for instance variables.


Which of the following statement is executed after call moduleB?

the first statement in ModuleB


Explain different use of super with the help of java program?

the keyword super is used to access methods/variables of the parent class. ex: public class A { public String getName(){ ..... } } public class B extends A { public String getName(){ ..... } } If you want to access the method getName of class A inside class B you cannot do directly because the compiler would get confused. you need not create an object of A since it is already available. At this point you can use super super.getName() is enough to call the method of the parent class

Related Questions

Why do you use static key word in Java programming?

Static is a keyword,when u execute a method in class file loaded, execute the first this method..


What is the first activity you should crash when encountering a keyword "crashing" in a project?

When encountering a keyword "crashing" in a project, the first activity you should crash is the critical path activity that is causing the delay. This involves prioritizing and speeding up the tasks that are essential for completing the project on time.


A thesis statement should be?

It should be a strong statement written in the first line of introduction, in a single sentence, stating what the topic is about.


What is the figured bass for the first inversion of the keyword?

The figured bass for the first inversion of the keyword is 6/3.


in scientific method which should come first?

The first step in the Scientific Method is to make objective observations


What was your instant of perception when you first encountered the keyword?

My immediate reaction when I first encountered the keyword was a moment of understanding or realization.


How much time has elapsed since the keyword was first introduced?

The keyword was first introduced 20 years ago.


Which inventory costing method assigns the most recent costs to the cost of good sold?

LIFO (Last in First Out) method is the method which charge the most recent prices to cost of goods manufactured and sold statement.


What will be the first question asked on judgement day regarding the keyword?

The first question asked on judgment day regarding the keyword will likely be about how well you lived your life according to the values and beliefs associated with that keyword.


What should be stated in the first step of scientific method?

the problem ;)


When using the scientific method what should be the first?

State the Problem


What happens when you place a semicolon after a statement?

When a statement is followed by a semicolon, this means that there is going to be another statement following the first statement which is related to it closely enough that it should not become a separate sentence.