can you create interface instance ?

Answer Posted / amit singh

it was just a bullshit you did man
you are creating jus he anonymmous class and is just treate
a subclass of the paricular inerface and also the override
mehod execute
learn java because prople like you just amajed those people
those don' know java
so try your self first thing that java is the whole thing
which realed to Object class not he object so learn it

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is autoboxing and unboxing?

575


What is a blocking method in Java?

595


Explain try and catch keywords in java?

616


What is treeset and treemap in java?

566


Discuss 2D arrays.

597






What is an immutable object?

573


How does hashset works in java?

522


What are different types of control structures?

481


What is mutable object and immutable object?

622


Can a static block throw exception?

649


What technique is carried out to find out if a particular string is empty?

557


What are the ways in which a thread can enter the waiting state?

503


What is console based application in java?

531


Explain the difference between the public, private, final, protected, and default modifiers?

547


Is an array a vector?

544