Home Tutorialhelp Comment can u explain is this program will compile or not,

 
 

Comment

venki
can u explain is this program will compile or not,,
January 27, 2007 at 5:02 PM

can u explain is this program will compile or not, but why?
public class A
{
//body of class
}
public static void main(String args[])
{
A a=new a();
a.methodname();
}
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Java Beginners

CoreJava
CoreJava  Sir, What is the difference between pass by value and pass by reference. can u give an example 

JSP Servlet Questions

can u plz explain the http request methods - JSP-Servlet
can u plz explain the http request methods  can u plz explain http... duplicate entries in the MySQL database we can follow one of these following approach... that we have deleted. Here is the explanation with the query : To explain use we 

Java Beginners

can u plz try this program - Java Beginners
can u plz try this program  Write a small record management application for a school. Tasks will be Add Record, Edit Record, Delete Record, List Records. Each Record contains: Name(max 100 char), Age, Notes(No Maximum Limit 

Java Beginners

plz explain me the output of program - Java Beginners
plz explain me the output of program  Hi friends, can u please explain me the output of below program with proper explanation of each and every line...;Hi Friend, Output of this program is: a=2 b=0 c=0 mul=27 volume=18 

Java Interview Questions

Please write code for this program in java and Explain it ? pl'sssssssss
Please write code for this program in java and Explain it ? pl'sssssssss .... it's very easy just read the question atleast 5 times u can solve it. ok Best Of Luck...;  wow i got also same program. ok leave it. in this program they are passing 

Java Beginners

corejava - Java Beginners
. This will allow a region to be accessed by only one program at a time. Any block, function or class can be declared as a synchronized one.  Hello 

Java Interview Questions

corejava - Java Interview Questions
singleton java implementation  What is Singleton? And how can it get implemented in Java program?  Singleton is used to create only one instance of an object that means there would be only one instance of an object 

Java Beginners

program on helloworld :explain
program on helloworld :explain  class Hello { public static void main...; variable exists within the class or object. (instance of program is called object... of the class or function can be public, private, etc. The class Hello code declares 

Java Beginners

program on helloworld :explain
program on helloworld :explain  class Hello { public static void... the class or object. (instance of program is called object ). The public word specifies the accessibility of the class. The visibility of the class or function can 

JSP Interview Questions

plz help me any one as fast as u can
plz help me any one as fast as u can  A thief Muthhooswamy planned... is given in an array. Write a program to find out the total number of jumps he will make to escape from the jail. Input Specifications Your program must read 4 

Java Beginners

compile this program and let me know the resolution
compile this program and let me know the resolution  class Maxof2...+" is greater than "+i); } } please compile and let me know the resolution  ... which is greater and display the output: 5 is greater than 4. You can given any 

General

Example to compile a java file with the help of the program
Example to compile a java file with the help of the program... are describing you the way to compile the java file with the help of the java program. The steps involved for compiling the java file from the program are described 

Programming Tutorials

Corejava Interview,Corejava questions,Corejava Interview Questions,Corejava
class is a class to which values assigned to the variables can not be altered... sandbox does not allow to obtain this reference so that system can be access 

Programming Tutorials

Corejava Interview,Corejava questions,Corejava Interview Questions,Corejava
;    Q 1. How can I get the full path of Explorer.exe... that system can be access from an applet loaded via the Internet.     Q 2... paths, that can be created on the file system or can be used to test whether 

Programming Tutorials

Corejava Interview,Corejava questions,Corejava Interview Questions,Corejava
. In an abstract class we can add a method with default implementation and then we can use it by extending the abstract class. ... use the equals method to make an exact match.    Q 3. How can I get 

Programming Tutorials

Corejava Interview,Corejava questions,Corejava Interview Questions,Corejava
: An immutable class is a class to which values assigned to the variables can... dynamically at runtime.    Q 4 : How can I call a constructor from... regardless of any other intentions. A concrete class implementing both interfaces can 

Struts Questions

Explain struts.jar file - Struts
Explain struts.jar file   Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain 

Hibernate Questions

Explain Transparent Persistence - Hibernate
Explain Transparent Persistence   Hi Friends, Can u plz explain Transparent Persistence briefly  Hi Follow this link to find solution of your problem... http://www.roseindia.net/jdotutorials/jdo 

Java Beginners

compile and run java program
compile and run java program  Hello, everyone!!! I just want to ask if you anyone here knows how to compile java file in linux specifically UBUNTU... do I compile and run this file using the terminal of ubuntu... By the way, I am 

Java Beginners

please explain this prog
please explain this prog  can u explain this import java.io.*; class SString{ public static void main(String ar[]) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in 

Java Beginners

Explain about threads:how to start program in threads?
Explain about threads:how to start program in threads?  import...; Learn Threads   Thread is a path of execution of a program. It can be called as single unit of execution in a program. A program can have 

Swing AWT

how can u reduce the size of textfield?
how can u reduce the size of textfield?  how can u reduce the size of textfield? thanks in advance   import javax.swing.*; public class ReduceTextField extends JFrame { public static void main(String 

Java Beginners

compile error
program with Test.java and try to compile with javac test.java an error like...compile error  Hello All for example public class..."); } } i have save this program with A.java. Then I executed this program javac A.java 

Java Beginners

can any one explain this
can any one explain this  class Clidder { private final void flipper() { System.out.println("Clidder"); } } public class Ex3 extends Clidder { public final void flipper() { System.out.println 

Java Beginners

can you explain ?
can you explain ?  my dear can you teel me the explaintion for this code i need it GregorianCalendar cal = new GregorianCalendar(y, m, 0...(); } } iam explain whole code exept this part can you help 

Java Beginners

Can u Look to the error plz - Java Beginners
Can u Look to the error plz  this is my code can u modify it plz and give me the result of it when u check it on eclipse or jcreator plz and i will be more thankfull if u do that :) , oh yeh one thing can you draw a flag 

Java Beginners

How to compile and run Java program
How to compile and run Java program  How to compile and Java program..., For compiling and running the Java program from command prompt you should must have JDK... tutorial Compiling and Running Java program from command line. If Java 

Servlet Interview Questions

how to compile and run servlet program
how to compile and run servlet program   hello sir/mam i hve installed tomcat5.5 version and also have jdk1.6.0_14 installed but not able to run it or compile i m doing it first tyme pls help me in sorting out this problem. i hve 

Java Beginners

please explain this program
please explain this program  public class MainClass { public static void main(String[] args) { System.out.println("Java 

Java Beginners

corejava - Java Beginners
corejava  how to write a program to multiply 1000 digit numbers with out using biginteger class 

Java Interview Questions

corejava - Java Interview Questions
corejava  how can we make a narmal java class in to singleton class 

Java Beginners

corejava - Java Beginners
What is Dynamic Binding  What is Dynamic Binding in Core Java?  Hi,Dynamic Binding:It is the way that provide the maximum functionality to a program for a specific type at runtime. There are two type of binding first 

Java Beginners

corejava - Java Beginners
corejava  how to retriving data from html to servlet?how send the data servlet to text.file   hai friend, By using FormBeans we can get the data from from html by servlet,because it follows Frontcontroler design 

Java Beginners

corejava - Java Beginners
Tutorials for Core Java beginners  Can anyone share their example of Encapsulation in java? I'm a core Java beginner.  Hi,Here is the description of Encapsulation in java:Encapsulation is a process of binding 

Java Beginners

corejava
 

Java Interview Questions

corejava
 

JSP Servlet Questions

CAN U HELP ME TO CODE IN JSP FOR ONLINE VOTING SYSTEM
CAN U HELP ME TO CODE IN JSP FOR ONLINE VOTING SYSTEM  can u help me to code in jsp for online voting system 

Java Beginners

How to compile and run the JSP
How to compile and run the JSP  Hi Kindly tell me how to run and compile JSP small Program using Tomcat as webserver. I created small program HELLO JSP in HTML and compile the program but it is saying Class o r interface 

Date Calendar

can u help me to get a calendar with color codes on days ???
can u help me to get a calendar with color codes on days ???  hi roseindia, Can you help me to get the code, I need a calendar with color codes.i,e....... NOTE:Its a calendar not a date-picker PLZ can you help me, its very urgent 

Servlet Interview Questions

Explain ServletContext.
Explain ServletContext.  Explain ServletContext.   Hi, Here is the answer, ServletContext interface is a window for a servlet to view it?s environment. A servlet can use this interface to get information 

Java Beginners

Compile time error
Compile time error  Hi, When i compile my simple program in cmd am getting a error like "Javac is not a recognized as an internal or external command, operable program or batch file" How to resolve this problem ????   

Java Beginners

Write a program that replaces a, e, i, o, u in Java2
Write a program that replaces a, e, i, o, u in Java2  Write a program that replaces a, e, i, o, u, with the letter z. (i.e. John Smith -> Jzhn Smzth. Also the program reverses the users name (i.e. John Smith -> htimS nhoJ 

HTML Questions

Unable to compile Servlet
was created by me. To compile my servlet program I did the following: C:\apache...Unable to compile Servlet  First I installed the tomcat server in C... JAVA_HOME with the value C:\Program Files\Java\jdk1.6.0.14 Then I created 

JDBC Questions

How Jdbc program can be run??
How Jdbc program can be run??  import java.sql.*; import java.util.... created successfully and when i compiled this program then it compiled successfully ,but when i run it ,it gives following error-> C:\Program Files\Java 

Java Beginners

explain this method
explain this method   i hope any one can explain this method ` private void showMonth(int m, int y) { int lead_spaces = 0; if (m < 0 || m > 11) { System.out.println("It should be 1 to 12 

Java Beginners

compile time error
compile time error  my program compile successfully and make the class file also but when i tried to do next command to see the output,it showing error that "could not find or load main class fibbo" fibbo is my class name 

Java Beginners

compile time error
compile time error  my program compile successfully and make the class file also but when i tried to do next command to see the output,it showing error that "could not find or load main class fibbo" fibbo is my class name 

Java Beginners

compile time error
compile time error  my program compile successfully and make the class file also but when i tried to do next command to see the output,it showing error that "could not find or load main class fibbo" fibbo is my class name 

Java Beginners

Please explain me the flow of this program..
Please explain me the flow of this program..  // Substring replacement. class StringReplace { public static void main(String args[]) { String org = "This is a test. This is, too."; String search 

Java Beginners

compile
compile  how to compile .class files using eclipse 

Java Beginners

JAVA Compile Question ?
JAVA Compile Question ?  I'm unable to compile this file and not sure why? Can someone please help? import java.nio.file.*; import java.nio.file.attribute.*; import java.nio.file.attribute.Attributes; import 

Development process Questions

i got an error while compile this program manually.
i got an error while compile this program manually.  import javax.servlet.http.*; import org.apache.struts.action.*; public class ActionOne{ public ActionForward execute(ActionMapping mapping 

Java Beginners

please explain me the flow of this program
please explain me the flow of this program  class Bticket extends Thread { Object train,comp; Bticket(Object train,Object comp){ this.train=train; this.comp=comp; } public void run(){ synchronized 

Java Beginners

Compile error - Java Beginners
Compile error  I get this error when compiling my program: java:167: unreported exception java.lang.Exception; must be caught or declared.... Thanks  Hi friend, Do some changes in the code then compile Successfully 

Java Beginners

servlet not compile - Java Beginners
servlet not compile  Hi friend, I am Using JDK 5.0 with that javax.servlet is not available so i download this package and put it in the src folder,but my program displayed "package not found" at the time of compilation 

Java Beginners

how the answer is 13 can anyone explain plz
how the answer is 13 can anyone explain plz  public class that { public static void main(String arr[]) { int i=3; int j=1; while(i<4) { //j=i; i=i+j/2; } System.out.println(i 

Java Beginners

java program example - Java Beginners
java program example  can we create java program without static and main?can u plzz explain with an example 

Java Beginners

code and specification u asked - Java Beginners
code and specification u asked  you asked me to send the requirements... can build in java are extensive and have plenty of capability built in. We found including a browser can be very useful, example. The user browse 

IDE Questions

How to Develop, Compile & Run a rmi Program in NetBeans 6.9.1 ide?
How to Develop, Compile & Run a rmi Program in NetBeans 6.9.1 ide?  how to develop, compile & run a rmi program in netbeans 6.9.1 ide? will you please give me a step by step (practical) explaination? Thanks in advance 

JSP Servlet Questions

How to compile & get output for JSP
How to compile & get output for JSP  HI My Roseindia friend has given the answer as RUN the JSP How to run the JSP Program? But what i mean is that i created a small jsp program in HTML and saved as Hello.jsp. And next i opened 

Hibernate Questions

Please explain Hibernate Sessionfactory.
Please explain Hibernate Sessionfactory.  Hi there, Please explain... to Hibernate you can go through the following links which we have provided, the tutorials here will help you learn Hibernate and will explain about hibernate 

Struts Questions

how to compile and run struts application - Struts
how to compile and run struts application  how to compile and run struts program(ex :actionform,actionclass) from command line or in editplus 3 

General

First Java Program
and then compile and test the same on your development machine. Write first Program... Machine.  You can write a Hello World program as your first Java...://www.roseindia.net/java/master-java/helloworld.shtml Compile and Test the Program Java 

JSP Servlet Questions

explain servletconfig with programiing example?
explain servletconfig with programiing example?  explain servletconfig with programiing example?   ServletConfig is a servlet configuration... initialization. All of its initialization parameters can ONLY be set 

Hibernate Questions

Explain Hibernate Relationships with example.
Explain Hibernate Relationships with example.  Hello, Please explain various hibernate relationships. And if you can provide some examples that would be a great help.. Thank you....   Hi, Hibernate relational 

Hibernate Questions

Explain factories design?
Explain factories design?  Hi, I can't understand the concept of factories design, if you can explain it to me in simple words, i would be grateful... can let its subclasses to decide which class to instantiate. For more details 

JavaMail Questions

can u plz help out how to attach file directly & send to a particular mail id
can u plz help out how to attach file directly & send to a particular mail id  i am building a project online LEAVE MANAGEMENT SYSTEM to our coll mini project so if a faculty write all details abt leave & shd send to HOD 

Java-Tutorials

How to Program in Java
This tutorial tells you how to program in Java? As a beginner you must know how to start programming in Java. Java is programming language which can be used... is also used to create enterprise web applications also. To program in Java you 

Mobile Applications Questions

this code gives addition of 2 numbers in j2me..but the code is not executing ..can u pls find out the error...??
this code gives addition of 2 numbers in j2me..but the code is not executing ..can u pls find out the error...??  import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class add1 extends MIDlet implements 

Java Beginners

CoreJava Project
CoreJava Project  Hi Sir, I need a simple project(using core Java, Swings, JDBC) on core Java... If you have please send to my account 

JSP Servlet Questions

displaying List of records from database in a jsp using ajax, onclick it should display the results ?? its urgent can u help me
displaying List of records from database in a jsp using ajax, onclick it should display the results ?? its urgent can u help me   displaying List... ?? its urgent can u help me 

Java Beginners

What is a vector in Java? Explain with example.
What is a vector in Java? Explain with example.  What is a vector in Java? Explain with example.   Hi, The Vector is a collect of Object... related to Vector in Java program 

Java Beginners

Explain the parameters of Font class constructor.
Explain the parameters of Font class constructor.  Explain the parameters of Font class constructor.   Java Font class: Font(String name... and point size. Parameters: name - the font name. This can be a logical font name 

JSP Servlet Questions

unable to compile class file - JSP-Servlet
unable to compile class file  I wrote database connection in jsp file. I have form in html. In html form i put drop down list box in that form. In database i have a employeeid field. How can i display all employee id 

Free Programming books

Linux Books
is to explain the use of the GNU C and C++ compilers, gcc and g++. After reading this book you should understand how to compile a program, and how to use basic... to teach the C or C++ languages themselves, since this material can be found 

Java Beginners

How to Explain different way of using thread?
How to Explain different way of using thread?  Hi, How to explain how to using different thread in Java program 

Java Beginners

How to Explain different way of using thread?
How to Explain different way of using thread?  Hi, How to explain how to using different thread in Java program........   Hi, There are different types Thread in Java program. Here is the explain how to using thread 

JSP Servlet Questions

Program - JSP-Servlet
Program  Respected Sir/Madam, I am R.Ragavendran.. Thanks for your reply.. Actually can u plz explain me the forlowing code: var..."; } else{ document.getElementById(imgid).src=imageURL; } } } can I write 

Struts 2 Tutorials

How to download, compile and test the tutorials using ant.
build tool to compile the examples. You can go to the command prompt and type... to install ant. You can read more about installing and using ant at http... apps directory. To compile the application open command prompt and go to < 

Java Interview Questions

Explain instance in java - Java Interview Questions
Explain instance in java  Hi Friends, can you explain instance in java. In general instance means "occurence of something" . In java what is instance 

Java Beginners

Can u print in turbo c 9 8 7 6 5 4 3 2 1 0 using pre increment operator Only use print ++a in the same printf() command ten times)
Can u print in turbo C  Can u print in turbo c 9 8 7 6 5 4 3 2 1 0 using pre increment operator Only use print ++a in the same printf() command ten times 

PHP Questions

How to compile PHP file and provide it to user without code?
it to my client so that he can be able to use it just like server control in asp.net instead of providing code file. How can I compile the PHP file and provide...How to compile PHP file and provide it to user without code?  I have 

Date Calendar

Can u print in turbo c 9 8 7 6 5 4 3 2 1 0 using pre increment operator Only use print ++a in the same printf() command ten times)
Can u print in turbo c 9 8 7 6 5 4 3 2 1 0 using pre increment operator Only use print ++a in the same printf() command ten times)  Can u print in turbo c 9 8 7 6 5 4 3 2 1 0 using pre increment operator Only use print 

Java Beginners

program using StringTokenizer
program using StringTokenizer  I want to know about StringTokenizer,so can you please explain it with an example 

Java Beginners

Java program for printing document
Java program for printing document  can u send me the java program for printing the office document? email: ibrahimbest@gmail.com 

Java Beginners

Explain final class, abstract class and super class.
Explain final class, abstract class and super class.  Explain final class, abstract class and super class.   Explain final class, abstract..., but they can be extended into sub-classes. Superclass allows various subclassed objects 

Java Beginners

pattern program
pattern program  can any 1 print the following pattern in java .plz give the code.and yes thank u so much for answering my 2 other questions.had i known that this would be so helpful i would have registered here long 

Development process Questions

SOLUTION: How to compile Objective C on Windows with GNU Step ?
SOLUTION: How to compile Objective C on Windows with GNU Step ?  <..., except the fact that the above program needs some more instructions to run. Here...;<strong>Compile using the below mentioned command line:</strong>< 

Java Beginners

Thank U - Java Beginners
Thank U  Thank U very Much Sir,Its Very Very Useful for Me. From SUSHANT 

Java Magazine Questions

Program
Program  hey please help me ... How can write multiple choice question paper using radio button.After submit calculate marks and display our marks... can any body help for me.using servlet,html   Here is a jsp test 

Java Tips and Examples

A Program to find area and perimeter of Rectangle
A Program to find area and perimeter of Rectangle In this section we will explain you with the help of a program to find the area and perimeter of ... and  print it to the console. Now here is your program compile and run 

General

U - Java Terms
U - Java Terms      ... creates date object specifying current date and time. It can be created specifying... (URI) is used to name or identify a resource. URI can be classified as Uniform 

JSP Servlet Questions

Can not find "org.apache.poi " - JSP-Servlet
net but i m unable to download the jar file. So can u help me to do...Can not find "org.apache.poi "  Hi friend, Thanks for giving me a solution.Thanks a lot.I have executed the program but it is showing 

Java Beginners

corejava - Java Beginners
corejava pass by value semantics  Example of pass by value semantics in Core Java.  Hi friend,Java passes parameters to methods using pass by value semantics. That is, a copy of the value of each of the specified 

JDBC Questions

ping program
but i want every ip info into my db.so can u pls help me out. code: import...ping program  my program will ping upto 192.168.100.59. and i want to insert that particular inforamtion into my oracle db.and i want to update 

Java Server Faces Questions

required treenodes checkboxes are not clicking if u change the url - Java Server Faces Questions
required treenodes checkboxes are not clicking if u change the url  ...(1001,1007,1002,1005,1008,1002,1009,1010,1008)are getting clicked. But when u again add or remove the album... changes in the screen . can anybody help asap. Library.java 

General

Compiling and Running Java program from command line
that explains you all steps necessary to compile and run the Java program from dos...; message on the console. I have chosen this simple program just to explain you.... There are many IDEs such as Eclipse, NetBeans etc. which can be used to compile and run 

iPhone

Compiling Objective C
is necessary as it generates the executable program that can run. Compiling Objective C... To compile program run the following command $ gcc -o hello hello.m...'). To run the program $ ./hello You can see output of the program 

Programming Tutorials

Explain how you overcame a major obstacle
Explain how you overcame a major obstacle       Qus. Explain how you overcame a major... you see yourself five (ten or fifteen) years from now? Ans. Explain your career 

Java-Tutorials

Encapsulation in Java
()); } } When you compile and run the program output will look like as follows... from the  outside world. Encapsulation can be achieved by making the member... are made  private so, they all are encapsulated well you can only change 

Advertisements Advertisements
 

 

 

DMCA.com