32,204 Topics

Member Avatar for
Member Avatar for boyz

What is the need for calling default constructor by JVM? why the JVM should intiializes default values to the data fields if the constructor is not there in our class?

Member Avatar for Ancient Dragon
0
242
Member Avatar for boyz

Herbert Schildt in The Complete Reference Java 2 says,"Because it is static, it must access the members of its enclosing class through an object. That is, it cannot refer to members of its enclosing class directly. Because of this restriction, static nested classes are seldom used." Can we use static …

Member Avatar for Ancient Dragon
-3
285
Member Avatar for boyz
Member Avatar for Phaelax
0
89
Member Avatar for Jishnu

Herbert Schildt in The Complete Reference Java 2 says,"Because it is static, it must access the members of its enclosing class through an object. That is, it cannot refer to members of its enclosing class directly. Because of this restriction, static nested classes are seldom used." Can we use static …

Member Avatar for lookof2day
0
328
Member Avatar for Grub

Hi, I am trying to display my floating point values as money in a machine. Now When I display the value 0.60, the zero is omitted from the end and as such is displayed as 0.6. I need to display it as 0.60. Many thanks in advance.

Member Avatar for Grub
0
85
Member Avatar for rugae

I need some advice on the way I'm should be doing something like this... My main GUI is composed of a JTable and query box for custom SQL user queries. I execute a SQL query, from the ResultSet, map the ResultSet an ArrayList<Object>, parse it to a tableModel class extends …

Member Avatar for rugae
0
180
Member Avatar for boyz

Can any one tell me how to get the currently active network interface name (Local Area Connection/ Wireless Network Connection/ other) either by using java SDK or win32 API. Is there any function to get the active network interface name in java/win32? Is there any procedure for it to get …

Member Avatar for jwenting
0
74
Member Avatar for boyz

i'm making a drawing application in which i am drawing on a canvas after taking points where mouse is dragged over it..........and this canvas is on a JPanel........but the problem is that when i minimize the window of the app, the whole drawing is lost..... pls suggest me so that …

Member Avatar for jwenting
0
69
Member Avatar for sanky27

I hav to pass an array frm jsp page to servlet.Array contains the name of the field which r checked & in order they r checked can anyone suggest me how to do tht it's urgent

Member Avatar for zandiago
0
43
Member Avatar for boyz

How to i assign groups to roles on application server, and how user assign tio group dynamically in j2ee using JASS...help

Member Avatar for zandiago
0
58
Member Avatar for boyz
Member Avatar for boyz

want to ask tht can we keep weblogic server in the services ..like we can keep Apache tomcat in services so tht we need not to start Tomcat server everytime to run a web application..Or there anyway to keep weblogic server at the startup so tht it start automatically...

Member Avatar for lookof2day
0
56
Member Avatar for boyz

how to generate a table GUI dynamically when user enters no of columns and rows.....so that user can enter data in that table.....in Java Netbeans......

Member Avatar for zandiago
0
59
Member Avatar for chetah

Requirements 1) read from output file eg: 1222222 + 2333333 3444444 - 9999999 6666555 * 7 0 2) For addition and sutraction, Number1 and Number2 should be large integers and must be stored in a link list. eg. output = 1222222 + 2333333 = 454444444(answer) 3) For multiplication, Number1 should …

Member Avatar for Jishnu
0
78
Member Avatar for ronghel

is it possible to compare the inputted number to the each number in a string? so i can display the frequency or occurence of number?..

Member Avatar for Ezzaral
0
88
Member Avatar for davemcgrath

hello, I have been meessing around with a simple drawing tool. It is an example out of begining Java 2. As an extra I was trying to add a draw triangle but got a little bit stumped. I can get the button to draw a static triangle. One size one …

Member Avatar for Ezzaral
0
78
Member Avatar for HeroOfTime

Hey Everyone! Thanks for your help on my previous endevors. But, I've been working on this program for..... weeks, maybe months, and it's slowly evolved from different versions. This version uses OOP heavily, and it almost works. Okay, if you are not familiar with the '8 queens' problem, the objective …

Member Avatar for HeroOfTime
0
171
Member Avatar for mrityunjay22

String description = ""; String query1 = ""; int grade_autoid,count=0; rSet1= DBHelper.getQueryResult(query); %> <tr> <td> <% Log.log("rset value is as"+rSet1); for(int i=1;i<rSet1.size();i++) { count++; grade_name = ((String)((Vector)rSet1.elementAt(i)).elementAt(0)); grade_autoid=((Integer)((Vector)rSet1.elementAt(i)).elementAt(1)).intValue();%> <% Log.log("gradeautoid is as" +grade_autoid); %> <% query1="select description from RUBRICS where grade_autoid="+grade_autoid; Log.log("query1 is as "+query); rSet2= DBHelper.getQueryResult(query1); Log.log("the size of …

0
58
Member Avatar for agrawalashishku

Hello Friend, Please answer my question. I am behind a firewall and proxy server. I enter the proxy password on firefox and when connect to any site that uses java, the java virtual machine also asks me for proxy password. It actualy does not ask me but it shows the …

Member Avatar for peter_budo
0
88
Member Avatar for dharween0629
Member Avatar for tdizzle342

K , im trying make a program were when u enter a number it draws a circle. The number entered is the radius (width) of the circle. "yes i know its stupid but im just messing around " > Now my problem is that if u enter a something either …

Member Avatar for darkagn
0
158
Member Avatar for Sylvie.Georges

guc professors decided to give bonus marks to engnieering students to their high performance in their projects as follows : 1st semester students are given 5% of the total mark if the mark exceeds 90/100 3rd semester students are given 7% of the total mark if the mark exceeds 85/100 …

0
69
Member Avatar for Sylvie.Georges

guc professors decided to give bonus marks to engnieering students to their high performance in their projects as follows : 1st semester students are given 5% of the total mark if the mark exceeds 90/100 3rd semester students are given 7% of the total mark if the mark exceeds 85/100 …

Member Avatar for Sylvie.Georges
0
101
Member Avatar for Jishnu

Why does the JVM initialise the data fields with default values if no constructors are defined in any class? What is the need for such a procedure of calling the default constructor?

Member Avatar for Jishnu
0
315
Member Avatar for chicago1985

I have a Date insert that is formatted into an Oracle 9i database and it works. But I had to make the Date variable a varchar2 in Oracle to get it to work: [code=java] java.sql.Timestamp myd = new java.sql.Timestamp(new java.util.Date().getTime()); String sub_date = new SimpleDateFormat("mm/dd/yy , h:mm a").format(myd); String query …

Member Avatar for chicago1985
0
79
Member Avatar for ronghel

hello to all.. i got a machine problem which is finding how many times the inputted number occured.. hows thar? inputted number:(bufferedReader) Enter number: 22 Enter number: 23 Enter number: 32 Enter number: 32 Enter number: 23 Number to be search: 2 Occurence : 6 i cant get it.. pls …

Member Avatar for Ezzaral
0
278
Member Avatar for Grub

Hi I am creating a house search programme. the objective of this programme is to sell houses within a range specified by the potential buyer. Now the buyer would type in the amount he is willing to spend and the houses closest to this range should be presented to him/her …

Member Avatar for Ezzaral
0
106
Member Avatar for elisa_yong

hi i have this assingment due very soon and i am totally stumped. I have to use java and im not good with it at all , ive' been searching everywhere and i can't find anything that would help me. Hopefully you guys can help me , thanks in advance. …

Member Avatar for elisa_yong
0
137
Member Avatar for hidash_in

<a onclick=" window.open('C:/Documents and Settings/palanikumar.r/Desktop/Doc.bat','remarks','height=600,width=915,left=50,top=50')" ><input type="button" value="start" onClick="startclock('')"></a> see, in the above coding i am using button to open a document file. im opening it through the batch file.. the batch file contains @echo off c: cd\ cd jdk1.5.0_05\bin javac Doc.java java Doc Doc.java is a java program through …

Member Avatar for masijade
0
124
Member Avatar for hidash_in

[COLOR="Red"][B]i am opening an application using java through a batch file. when i am clicking the batch file the file download dialog box is opening . i dont need to open the dialog box without that dialogue box the file should be open. pls help advance thanks and regarda[/B][/COLOR]

Member Avatar for masijade
0
69

The End.