What is the argument type of main() method?

Answers were Sorted based on User's Feedback



What is the argument type of main() method?..

Answer / ranganathkini

The argument is a String[] which contains the command line
parameters passed by the user while launching it.

Is This Answer Correct ?    3 Yes 0 No

What is the argument type of main() method?..

Answer / ravikiran(aptech mumbai)

String[]

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How do you compare two strings lexicographically?

0 Answers  


Can You Have Virtual Functions In Java?

0 Answers  


What is a finally block? Is there a case when finally will not execute?

0 Answers  


Hi friends, i am new to java. can you explain how java is secured.

2 Answers  


Is there any way to find whether software installed in the system is registered by just providing the .exe file? I have tried the following code but its just displaying the directory structure in the registry. Here the code : package com.msi.intaller; import java.util.Iterator; import ca.beq.util.win32.registry.RegistryKey; import ca.beq.util.win32.registry.RootKey; public class RegistryFinder { public static void main(String... args) throws Exception { RegistryKey.initialize(RegistryFinder.class.getResource("jRe gistryKey.dll").getFile()); RegistryKey key = new RegistryKey(RootKey.HKLM, "Software\\ODBC"); for (Iterator<RegistryKey> subkeys = key.subkeys(); subkeys.hasNext();) { RegistryKey subkey = subkeys.next(); System.out.println(subkey.getName()); // You need to check here if there's anything which matches "Mozilla FireFox". } } }

0 Answers   Google,






How many bytes is string in java?

0 Answers  


What does it mean to be immutable?

0 Answers  


What are triggers in DB? Explain their types. How do they work?

0 Answers   Amdocs,


What are the difference between composition and inheritance in java?

0 Answers  


What is a vararg?

0 Answers  


what is java

10 Answers  


What is java algorithm?

0 Answers  


Categories