Can we inherit the constructor in a Class?please give one
example.

Answer Posted / sri

we cannot inherit constructors.

Is This Answer Correct ?    35 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java 1.7 the same as java 7?

799


What does the exclamation mark mean in java?

933


What is type inference in java8?

803


What is nested loop? What is dangling else condition in it?

821


whatis Home interface and Remoteinterface? with example?

1769


How do you test a method for an exception using junit?

821


Does java allow default arguments?

782


What is class forname?

738


What is module in project?

742


Describe the various concepts related to object oriented programming (oop).

814


What are the major drawbacks of external iteration?

821


What is difference between final and immutable?

791


which pattern is default in scanner package?

2003


Is there any way to find whether software installed in the system is registered by just providing the .exe file? I have tried the following code but its just displaying the directory structure in the registry. Here the code : package com.msi.intaller; import java.util.Iterator; import ca.beq.util.win32.registry.RegistryKey; import ca.beq.util.win32.registry.RootKey; public class RegistryFinder { public static void main(String... args) throws Exception { RegistryKey.initialize(RegistryFinder.class.getResource("jRe gistryKey.dll").getFile()); RegistryKey key = new RegistryKey(RootKey.HKLM, "Software\\ODBC"); for (Iterator subkeys = key.subkeys(); subkeys.hasNext();) { RegistryKey subkey = subkeys.next(); System.out.println(subkey.getName()); // You need to check here if there's anything which matches "Mozilla FireFox". } } }

1557


Explain the difference between intermediate and terminal operations in java8?

806