0
Q:

Can you access non static variable in static context ? 

Answer:



Q:

Which of the following are capabilities of functions in JavaScript?

A) Accept parameters B) Return a value
C) Accept parameters and Return a value D) None of the above
 
Answer & Explanation Answer: A) Accept parameters

Explanation:

Accept parameters are capabilities of functions in JavaScript.

Report Error

View Answer Report Error Discuss

Filed Under: Java
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Database Administration , IT Trainer

14 16386
Q:

Which of the following statements about inheritance is false?

A) Inheritance allows you to minimize the amount of duplicate code in an application by sharing common code among several subclasses. B) A subclass inherits all the members (fields, methods, and nested classes) from its superclass.
C) Through inheritance, a parent class is a more specialized form of the child class. D) Inheritance allows you to reuse the fields and methods of the super class without having to write them yourself.
 
Answer & Explanation Answer: C) Through inheritance, a parent class is a more specialized form of the child class.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: Analyst , Database Administration , IT Trainer

5 4302
Q:

Exception handling is targeted at

A) Compile time error B) Logical error
C) Run time error D) All of the above
 
Answer & Explanation Answer: C) Run time error

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Java
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

4 9300
Q:

How many constructors can a class have?

A) 1 B) 2
C) 4 D) None of the above
 
Answer & Explanation Answer: D) None of the above

Explanation:

A class can have any number of constructors. If a class have more than one constructor, we call it as the constructor is overloaded.

Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: Database Administration , IT Trainer

9 10466
Q:

How to call a constructor in java?

Answer

Constructor chaining is the process of calling one constructor from another constructor with respect to current object.





Within same class: It can be done using this() keyword for constructors in same class


From base class: by using super() keyword to call constructor from the base class.

Report Error

View answer Workspace Report Error Discuss

1 1609
Q:

Which of the following is not a keyword?

A) assert B) pass
C) eval D) nonlocal
 
Answer & Explanation Answer: C) eval

Explanation:

"eval" is not a keyword and is can be used as variable.

Report Error

View Answer Report Error Discuss

Filed Under: Java

19 15614
Q:

Warning implicit declaration of function?

Answer

Function: A Function is a block of statement which perform some operation.



Declaring the function before using the function in program is known as implicit declaration of the function.



For Example::


int bar(void); // function (forward) declaration



int main(void) {


bar(); // bar was declared, the compiler has all the info


return foo(123); // foo not yet known; impl. decl. warning


}



// not previously declared function definition


int foo(int a) {


return a;



// previously declared function definition


int bar() {


return 321;


}

Report Error

View answer Workspace Report Error Discuss

Subject: Java
Job Role: IT Trainer , Analyst

1 1913
Q:

Is it possible to nest functions in javascript?

Answer

Yes, it is possible to nest functions in javascript.

Report Error

View answer Workspace Report Error Discuss

Subject: Java
Job Role: IT Trainer

11 2462