To what value is a variable of the Boolean type
automatically initialized?
Answers were Sorted based on User's Feedback
Answer / harikrishna
a variable of the Boolean type
automatically initialized to false
| Is This Answer Correct ? | 10 Yes | 0 No |
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 boolean keyword in java?
Can list be null in java?
What is byte data type?
What is square root in java?
What are field variable and local variable?
what is singlton class?where it is use in real time senario.
Advantages of Inheritance in java.
What are the standards to place package statement within a source code file?
Define an applet in java?
What is skeleton and stub? What is the purpose of those?
what are abstract functions?