![]() Related Questions Latest Answer : Abstract Class: There are two ways to create abstract class, one is by mentioning abstract key before the class declaration, and second one is by mentioning abstract key before the method declaration we can make that class as abstract class.eg:public ... Tags : Abstract Latest Answer : fianl key word is use to declare a mamber as constant ... Latest Answer : Hai Friends you have to remember one thing.The Jvm is one.Butwe can have mamy jvm instances. you open five commmand prompts and do java programs in all command prompts.All will execute.For Every command prompt one jvm intances is assinged. ... Read Answers (5) | Asked by : sirisha i do't know Latest Answer : Check does it in range of integer or not ... Read Answers (13) | Asked by : mohit Latest Answer : Any number of JVM's can be installed on a single OS,JVM is simply an environment, which executes the java application, so it will be ultimately the user choice to decide upon which environment he would like to run his application on.( remember :: $ ... Why there is no guarentee for System.gc() method will perform garbage collection for a particular time? Read Answers (2) | Asked by : chandu What happen if we write many curly braces in main method and write println method inside it .program What happen if we write many curly braces in main method and write println method inside it .program will compile or not? Read Answers (8) | Asked by : sandeep I want to know output of this program and the flow alsopublic class Aquestion { private int i = giveMeJ(); private int j = 10; private int giveMeJ() { return j; } public static void main(String args[]) { System.out.println((new Aquestion()).i); } } I want to know the difference between these two programs mean the flow/*public class Aquestion { private int i = giveMeJ(); private int j = 10; private int giveMeJ() { return j; } public static void main(String args[]) { System.out.println((new Aquestion()).i); } } */public class Aquestion{private int j = 10;private int i = giveMeJ();private int giveMeJ(){ return j; }public static void main(String args[]){System.out.println((new Aquestion()).i);}} Solve it... public class test {public static void main(String[] args) { int i=5; i=i++; System.out.println("result::"+i); }}The result wil be 5..!! and not 6 why???
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||