give an example for encapsulation?
No Answer is Posted For this Question
Be the First to Post Answer
What does @override mean?
What does ide stand for?
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(); } }
What are the common problems you have faced while implementing Java?
What are virtual methods?
What does java ide mean?
what is singleton class in java?
How can a gui component handle its own events in java programming?
What is thread start?
Is java code slower than native code?
What is multiple inheritance & can we implement it in java?
What is meant by attribute?