how are methods defined?
Answer / Vinit Kumar Pandey
A method in Java is defined by specifying a name, return type (optional), and parameters. It can also include access modifiers.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between stream and buffer?
Memory management in JAVA
3 Answers Tech Mahindra, Wipro,
What is main string [] args?
Program to output as below formate: 1 2 3 4 5 6 7 8 9 10
How variables are declared?
What does java ide mean?
What is difference between equal and == in java?
Give me an example of array and linked list? Where they can be used?
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 is java beans?
In method overloading ,if i change the return type to Long instead of INT,is the program execute
Enlist few advantages of inheritance?