Can we sort list in java?
No Answer is Posted For this Question
Be the First to Post Answer
What is temp in java?
Can private class be extended java?
Why stringbuilder is not thread safe?
Why Java doesn’t support multiple inheritance?
What are the advantages of functions?
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(); } }
Is a boolean variable?
class A{ some variables; public void a()throws Excepion1,Exception2{....} } class B extends A{ variables... public void a()throws E2,E3{.....} } Qns: here override of methods occurs or not,ore else wil give any compilation error or run properly..plz tell me briefly whts happening with the above codes....
In java, what is the difference between method overloading and method overriding?
In java how do we copy objects?
What does arrays sort do in java?
What are the advantages of inner classes?