if a java file without any source code is valid java file?
Answer Posted / gaurav kumar
yes a java file without any source code is valid java file.
it will compile without any error but while running it gives
error-
"could not find or load main class----"
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How many bytes is a string in java?
What is e in java?
What is compareto?
Explain what is encapsulation?
What are the differences between getting and load method?
What is difference between == equals () and compareto () method?
hr interview how many minutes asking question
If a class is declared without any access modifiers, where may the class be accessed in java programming?
public class Test { public static void main(String[] args) { int countA = 0; int countB = 0; int countC = 0; int countD = 0; int countE = 0; int countF = 0; int countG = 0; int countH = 0; int countI = 0; int countJ = 0; int countK = 0; int countL = 0; int countM = 0; int countN = 0; int countO = 0; int countP = 0; int countQ = 0; int countR = 0; int countS = 0; int countT = 0; int countU = 0; int countV = 0; int countW = 0; int countX = 0; int countY = 0; int countZ = 0; } } Can anybody tell me any alternate solution(like loop or something) to automate this initialization process. Ex:- for(char chr='A';chr<='Z'; chr++) { (int) String "count"+chr = 0; }
What are "methods" and "fields"?
Why is whitespace important?
What are sets in java?
What is the java idl system?
How does arrays sort work in java?
What is structure of java heap? What is perm gen space in heap?