How are destructors defined in java?
No Answer is Posted For this Question
Be the First to Post Answer
What is a default constraint?
What is the collection interface?
Which method returns the length of a string?
What things should be kept in mind while creating your own exceptions in java?
why we need this (1.object,2.class,3.data hiding,4.encapsulation,5.abstraction,6. polymorphism,7.inheritance)
What is nextint java?
can any one tell me when do u go for inheritance and polymorphism
What exactly is methodology?
Why main function is static?
Is it possible to write JAVA program without including any of the packages,such as "import java.io.*"; bcoz I instantly wrote a code without "import..." statement and runned the program on command Line & it worked. the code is: class Person { String name; int age; Person(String s,int a) { name = s; age = a; } accept() { System.out.println(name+"Hi!!!!!"); System.out.println(age); } } class Demo { public static void main(Strings args[])throws IOException { String name = args[0]; int age = Integer.parseInt(args[1]); Person p = new Person(name,age); p.accept(); } }
Explain the polymorphism principle?
how to call One constructor from another;