Can a class be private or protected in java?
Answer / Ajay Kumar Pandit
In Java, you can define a class as private, but it can only be accessed within the same file. Protected classes cannot be declared.
| Is This Answer Correct ? | 0 Yes | 0 No |
When is an object subject to garbage collection?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
Where is jre installed?
What modifiers are allowed for methods in an interface?
write java code to print second max number in the array
Write code of any action class?
Differences between traditional programming language and object oriented programming language?
Why collection is called framework in java?
How do you create a reference in java?
there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.
What kind of variables a class can consist of?
In a container there are 5 components. I want to display all the component names, how will you do that?