Can we define private and protected modifiers for the members in interfaces?
No Answer is Posted For this Question
Be the First to Post Answer
How do you sort a set in java?
What is the difference between stream and buffer?
How would you convert bytes to string?
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(); } }
Are constructors methods?
What are the characteristics provided in jdk1.6 apart from other versions?
What is JVM ?
4 Answers Phantom Technologies, TCS,
What is user defined exception in Java?
When arithmeticexception is thrown?
Difference between Array and vector?
How to split a string in java?
Tell me how many ways are there to initialise an integer with a constant.