in a constructor what happen if u call super and this in
the same class? i know that it is not possible to call
both in the same one? if we call what will happen?

Answer Posted / srikant bhat

it wil giv an exception -compiler exception

Is This Answer Correct ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.

2375


What is the type of lambda expression?

620


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

681


What are some examples of variable costs?

582


What is class forname used for?

649






Write a program to check string is palindrome without using loop?

654


Why set do not allow duplicates in java?

670


What is meant by 'Class access modifiers'?

663


Explain the difference between comparator and comparable in java?

575


What is the difference between static and global variables and also define what are volatile variables?

663


What are the benefits of immutable objects?

630


what is bmg file and how to create that files?what will it contailn?

1998


What is a variable and constant?

655


What class of exceptions are generated by the java run-time system?

740


What is the base class of all exception classes in java?

667