What is role of void keyword in declaring functions?
No Answer is Posted For this Question
Be the First to Post Answer
What is a private class in java?
How do you use spaces in java?
How can you handle java exceptions?
What is the collections api in java programming?
can we add two numbers without using arthematic operators? if possible how?
Write a java program to check if a number is prime or not?
Can each java object keep track of all the threads that want to exclusively access it?
What is regex used for?
what is encapsulation in java? Explain
I declared main() method as private. But it still running and displaying the output. Please Answer it . Code Snippet as Below: import java.io.*; class over { private static void main(String[] args) { int high = Integer.MAX_VALUE; int overflow = high + 1; int low = Integer.MIN_VALUE; int underflow = low - 1; System.out.println(high + "\n" +overflow +"\n"+ low +"\n"+underflow); //System.out.println(overflow); //System.out.println(low); //System.out.println(underflow); } }
Is void a wrapper class?
Define a java class.